Centering adsense ad to fit between logo and search field

Discussion in 'AdSense' started by sikeveo, Dec 12, 2009.

  1. #1
    This is my site:

    http://tinyurl.com/ycr88o2

    I want to fit the top adsense banner between the site logo and the search field. Of course I want them to be aligned vertically in a smooth row.

    Is this possible?
     
    sikeveo, Dec 12, 2009 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    Yes it is possible simply use a BR after each element, logo < BR /> adsense code < BR / > search
     
    JamesColin, Dec 12, 2009 IP
  3. sikeveo

    sikeveo Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I tried that and it still looks the same. Why would I use linebreaks, they just add another line between the adsense and the logo?
     
    sikeveo, Dec 13, 2009 IP
  4. abdulrehman940

    abdulrehman940 Active Member

    Messages:
    600
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    use div id
     
    abdulrehman940, Dec 13, 2009 IP
  5. sikeveo

    sikeveo Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Care to explain? Please?
     
    sikeveo, Dec 13, 2009 IP
  6. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #6
    No, usually you have to tell the browser to go to the next line after a logo or even after an adsense code, they don't go automatically. But it's true that if you use DIV around adsense code and logo image, a div will go to the next line automatically.
     
    JamesColin, Dec 13, 2009 IP
  7. sikeveo

    sikeveo Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hmm, i put the br tags around it but its still the same as you can see.
     
    sikeveo, Dec 13, 2009 IP
  8. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #8
    I didn't look in your html source, but it's probably because you have CSS float that puts everything on the left or right. The header would need to be cleaned. Sorry but I don't have time to check it for you, perhaps someone else will.
     
    JamesColin, Dec 13, 2009 IP
  9. Titing Kabayo

    Titing Kabayo Peon

    Messages:
    982
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Space is not enough for banner size I think..
     
    Titing Kabayo, Dec 13, 2009 IP