Forum Moderators: not2easy

Message Too Old, No Replies

Absolute Positioning Problem

         

depiction

9:11 pm on Jan 6, 2004 (gmt 0)

10+ Year Member



I use absolute positioning to place google adsense ads on my site. Sometimes the ad will load in the proper place, however sometimes it loads inproperly, overlapping the content of my page. (Sometimes it loads to far to the left, covering part of my text on my pages.) This doesn't seem to bother me much, but I have gotten complaints. The problem can usually be solved just by reloading the page.

Here is my code:

#google {
position: absolute;
left: 633px;
top: 232px;
width: 120px;
}

You might be able to see the problem at <url removed - please see TOS> [webmasterworld.com] or any of the pages at my site.

[edited by: tedster at 1:36 am (utc) on Jan. 7, 2004]

dcrombie

9:40 am on Jan 7, 2004 (gmt 0)



You might be better off using "float: right" to position Adsense in the margin.

SuzyUK

9:42 am on Jan 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



depiction..

are you using any other absolute or relative positioning on your page and/or are you using the negative margin method to position anything else on page?

or can you recreate the scenario (without using the actual adsense panel) with the rest of your layout code, if so, strip code and post which bits are causing the error

Oh and is it Browser Specific?

Suzy

depiction

7:48 pm on Jan 7, 2004 (gmt 0)

10+ Year Member



Using float: right solved the problem. Thanks.