1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help me center addthis on html page

Discussion in 'PHP' started by dscurlock, May 7, 2012.

  1. #1
    I have setup addthis to my index.html

    I have used html center tag, and it just will not center on the page.

    any help would be appreciated.

    You can see it here.

    http://www.advertisingboard.com
     
    dscurlock, May 7, 2012 IP
  2. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #2
    First validate html coding a lot of errors on it....
     
    kind_of_the_cash, May 7, 2012 IP
  3. dscurlock

    dscurlock Prominent Member

    Messages:
    4,564
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    300
    #3
    For what is there, I am not concerned with errors...

    Would just like to center addthis...


     
    dscurlock, May 7, 2012 IP
  4. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #4
    Try to add <center> tag after your body tag like below (and also remember to close it at the end of body)

     
    kind_of_the_cash, May 7, 2012 IP
  5. dscurlock

    dscurlock Prominent Member

    Messages:
    4,564
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    300
    #5
    that would normally center the entire page from there, but that did not work.
    center tag does not seem to affect addthis, but I did try it...

     
    dscurlock, May 7, 2012 IP
  6. dscurlock

    dscurlock Prominent Member

    Messages:
    4,564
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    300
    #6
    Maybe this will help. It does not help me because I do not understand code, i did
    attempt to place it, but it was a bad turn out, not sure exactly how it is to be implemented.

    To center an AddThis toolbox you have to give the div with the class addthis_toolbox a width and define the horizontal margins so that it pushes the div to the center. Here's an example:

    div.addthis_toolbox {
    width:33%;
    margin-left: 33%;
    margin-right: 33%;
    }
     
    dscurlock, May 7, 2012 IP