homepage Welcome to WebmasterWorld Guest from 54.211.213.10
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

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




msg:4611406
 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?

Thanks!

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

 

DrDoc




msg:4612978
 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