Tip Details

Rate as: Positive Negative

Google AdSense ads not positioning correctly

I noticed recently on several of my sites that my Google AdSense ads were no longer being positioned correctly when looking at my sites using IE6 or IE7. The ads would start out in the correct location. But after every thing got loaded, the position of the ad would change so that the ad was floating on top of my content.

Obviously Google made some sort of change in the AdSense code to cause this since it was not happening before. But the big question is, how to fix it? In my case, the ads that were being displayed wrong inside of div elements that were themselves nested inside of other div elements. Using the IE developer tools, I could see that all of the div elements were being position using relative positioning except for the final element inserted code from the AdSense iframe which seemed to be using absolute for the position element.

So the fix was very simple. I added position: relative to the CSS of the div element containing my ads. Once I did that it fixed the problem and the ads were positioned correctly.
Rating: 100% positive, 3 total Votes
Categories: adsense IE6 IE7 google css
Added: on Feb 26, 2009 at 10:18 am
Added By: an anonymous user
Searches: adsense google ads element ie7

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Image resizing in Internet Explorer

100% positive, 0 comments
– Tip added by an anonymous user on Jan 09, 2009 at 11:02 am

empty table cells in IE6

Categories: HTML CSS IE6
66% positive, 1 comment - last added on Oct 30, 2009 at 7:34 am
– Tip added by an anonymous user on Nov 11, 2008 at 12:24 pm

Does work for IE6!

Categories: HTML CSS IE6 table cells
100% positive, 0 comments
– Tip added by an anonymous user on Nov 11, 2009 at 3:25 am

Using google as the default search in IE7

Categories: IE7 search google
0% positive, 1 comment - last added on Mar 17, 2009 at 4:45 pm
– Tip added by an anonymous user on Jan 24, 2008 at 9:16 am

Internet Explorer not updating div content

100% positive, 0 comments
– Tip added by an anonymous user on Feb 09, 2010 at 7:40 am

Opening docx or xlsx files without Microsoft Office

100% positive, 0 comments
– Tip added by an anonymous user on Nov 24, 2009 at 7:48 am

Export Google Doc files

Categories: Google Docs export
100% positive, 0 comments
– Tip added by an anonymous user on Oct 30, 2009 at 7:28 am

Download Google books as PDFs on a Mac

no ratings, 0 comments
– Tip added by an anonymous user on Mar 01, 2010 at 1:14 pm

Faster navigation in google maps

no ratings, 0 comments
– Tip added by an anonymous user on Feb 19, 2010 at 12:27 pm

How to turn off Google Buzz

Categories: Google Buzz security Gmail
no ratings, 0 comments
– Tip added by an anonymous user on Feb 18, 2010 at 1:14 pm

Browser CSS Compatibility

no ratings, 0 comments
– Tip added by an anonymous user on Feb 18, 2010 at 7:06 am

How to add Google Gadgets to a Joomla website

Categories: joomla google Gadgets
no ratings, 0 comments
– Tip added by 5minutejoomla on Jan 29, 2010 at 12:30 pm

Beware the Google Toolbar

no ratings, 0 comments
– Tip added by an anonymous user on Jan 28, 2010 at 10:53 am

Google privacy

no ratings, 0 comments
– Tip added by an anonymous user on Jan 19, 2010 at 4:11 pm

Reliable web proxy

Categories: proxy google bypass
no ratings, 0 comments
– Tip added by an anonymous user on Jan 10, 2010 at 3:43 pm

Google Chrome browser available for the Mac

no ratings, 0 comments
– Tip added by an anonymous user on Dec 10, 2009 at 11:35 am

Google DNS Servers

Categories: Google DNS OpenDNS
no ratings, 0 comments
– Tip added by an anonymous user on Dec 09, 2009 at 2:25 pm

Free Google Wave eBook

Categories: free Google Wave ebooks
no ratings, 0 comments
– Tip added by an anonymous user on Nov 08, 2009 at 8:11 am

Google voice search for Nokia phones

Categories: Nokia google search voice
no ratings, 0 comments
– Tip added by an anonymous user on Nov 02, 2009 at 5:08 pm

Free OCR

Categories: OCR images google
no ratings, 0 comments
– Tip added by an anonymous user on Oct 06, 2009 at 8:20 am