Forum Moderators: martinibuster

Message Too Old, No Replies

Size of website changes depending on computer or browser?

         

serengeti

8:50 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



Sometimes I can see the adsense box underneath the text (I put one blank row between the end of the text and the start of the adsense box). Sometimes not. Same goes for the sides of the box.

And I don't want to put the box on top as I prefer users to see and read all the content first.

From my home computer and Firefox it seems ok. From work with IE, I can't see the Adsense box.

Any other possible reason?

lammert

11:51 pm on Aug 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The AdSense block is displayed inside an Iframe. IE and Firefox have different algorithms do display an Iframe, which causes different results in some cases. This caused on one occasion my AdSense ad block to be only visible for 50% in IE, but 100% in Firefox, because the latter moved the block to the bottom of the page, where IE left the block at the original position and forgot to ad a scrollbar.

My diagnose was that Firefox first renders the Iframe, then calculates the size and when this is finished determines the best place to display the Iframe. IE on the other hand first decides the place of the Iframe (which has initialy probably size 0x0), then renders the content and ignores all the rendered content when it falls outside the viewport of the current page.

I mailed AdSense about my specific problem, but they responded that they don't support problems with HTML--even if they are AdSense adbox related and caused by the way Google implemented the adbox in an Iframe--so I was on my own. Putting the AdSense ad in a div, and giving the div a float:left, float:right or similar parameter might work in your occasion, it all depends on your layout. Giving the div the same width and height as the enclosed ad box might also help. Also drawing a table around the block might be a solution if you don't want to use CSS.

Another solution could be to give your page a fixed width, if it now has a floating layout. Query Google for "CSS quick tutorial" to learn more about CSS attributes.