homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Google AdSense Ad Overlapping Side Navigation
css, adsense, html, navigation, position

10+ Year Member

Msg#: 4611404 posted 8:01 pm on Sep 20, 2013 (gmt 0)

I use CSS to position my Google AdSense ads when the web page loads. I recently noticed that my footer Google AdSense ad sometimes covers my right-side navigational links.

Anybody know how to set up this ad CSS positioning so that is always below the main content or the right-side navigational links, whichever is longer?


[edited by: DrDoc at 5:21 pm (utc) on Sep 26, 2013]



WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4611404 posted 5:29 pm on Sep 26, 2013 (gmt 0)

Depending on the layout of the page, there are a couple ways of getting a footer to shift below something else.

For floated columns, simply use
clear: both on your footer div. This will force it to clear whichever is the tallest element, whether floated to the left/right.

Otherwise, if there is a "wrapper" container in which both the main content area and columns reside together, and that wrapper ends up extending in height to fit the tallest, you can simply place the footer below this wrapper.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved