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.

How do you make your adsense code appear on the center or anywhere else.

Discussion in 'AdSense' started by media, Jan 25, 2008.

  1. #1
    I put an Adsense code on my websites Html but its only appearing on the left side, do i have to change the html or add new html to the adsense code so it will appear in the Center or anywhere else that i want it to be.
     
    media, Jan 25, 2008 IP
  2. crashq7

    crashq7 Peon

    Messages:
    264
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    did you try to put <center> in front and </center> after the code?
     
    crashq7, Jan 25, 2008 IP
  3. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #3
    Yes, as with any other element you have to place 'instructions' in the code to control the placement.

    The simplest way to do this is to add

    <div align="center">
    your adsense code
    </div>

    The best way would be to use an externall CSS style sheet

    Put something like this in your CSS (note that this is a very simplified style example):

    .gglad { text-align: center; }

    Then you would put:

    <div class="gglad">
    your google code
    </div>
     
    kentuckyslone, Jan 25, 2008 IP
  4. media

    media Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What if you don't want it in the left or center, but somewhere in between.
     
    media, Jan 25, 2008 IP
  5. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #5
    add float: left; or float:right; to the css style. Then wherever you put the

    <div class="gglad">
    your google code
    </div>

    It will show up on the right or left of that particular element (not on the right or left hand side of the page)
     
    kentuckyslone, Jan 25, 2008 IP
  6. 123extra

    123extra Peon

    Messages:
    1,502
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #6
    here some code you can use :
    1. <center> adsense code here </center>
    2. <p align="center"> adsense code here </p>
    3. <div align="center"> adsense code here </div>

    hope that helps :D
     
    123extra, Jan 25, 2008 IP
  7. Holly

    Holly Banned

    Messages:
    190
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks, some of that was helpful for me.
     
    Holly, Jan 25, 2008 IP
  8. birdsfly

    birdsfly Well-Known Member

    Messages:
    894
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #8
    I had this problem before as well....I fixed it this way.

    1. Unscrew the case of the current computer.
    2. Remove case side.
    3. Unscrew and unlatch motherboard.
    4. Go to nearest fire place.
    5. Throw motherboard into fire and scream "TAKE THAT!!!".

    This should yield the correct result.
     
    birdsfly, Jan 25, 2008 IP
  9. glasglow

    glasglow Active Member

    Messages:
    926
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #9
    That worked for me!
     
    glasglow, Jan 25, 2008 IP
  10. media

    media Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Why would you do that
     
    media, Jan 25, 2008 IP