Tip Details Add a Related Tip

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

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

Image resizing in Internet Explorer

100% positive, 0 comments
– Tip added by an anonymous user on Jan 09, 2009 at 11:02 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

Google includes Label Cloud for Blogger Blogs

Categories: google
100% positive, 0 comments
– Tip added by qualitypoint on Aug 27, 2009 at 3:40 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

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

Google Reader easter egg

Categories: Google Reader easter egg
no ratings, 0 comments
– Tip added by an anonymous user on Oct 04, 2009 at 9:57 am

Invoking the Google Chrome frame for your web page

no ratings, 0 comments
– Tip added by an anonymous user on Sep 25, 2009 at 2:52 pm

Forcing IE to use the Google Chrome frame

no ratings, 0 comments
– Tip added by an anonymous user on Sep 25, 2009 at 10:48 am

Enabling extensions in Google Chrome

no ratings, 0 comments
– Tip added by an anonymous user on Sep 22, 2009 at 7:50 am

importing and exporting data into and out of Google

Categories: Google data import export
no ratings, 0 comments
– Tip added by an anonymous user on Sep 16, 2009 at 9:32 am

Google maps now including side road traffic

Categories: Maps Google
no ratings, 0 comments
– Tip added by an anonymous user on Aug 31, 2009 at 7:31 am

CSS template from scratch

Categories: CSS web design
no ratings, 0 comments
– Tip added by an anonymous user on Aug 21, 2009 at 9:53 pm

Create a wordpress theme from a Photoshop PSD

Categories: free wordpress theme CSS free
no ratings, 0 comments
– Tip added by an anonymous user on Aug 12, 2009 at 4:18 pm

Try out Google's next generation search algorithm

Categories: Google search
no ratings, 0 comments
– Tip added by an anonymous user on Aug 11, 2009 at 3:55 pm

CSS Backgrounds Properties

no ratings, 0 comments
– Tip added by learnhtmlonline on Aug 10, 2009 at 2:06 pm

Google chrome themes

Categories: Google Chrome themes
no ratings, 0 comments
– Tip added by an anonymous user on Aug 09, 2009 at 4:55 pm