Due to templating and database restrictions, I need to use an iframe to show banners. The banners are a fixed size, so it’s a pretty simple implementation.
*Note that initially I had no code other than the link, but since IE also placed a white bg on the src frame, I had to include the basic html.
Now for the views:
In Firefox:
In Opera:
And in IE 8:
The banners are sliding down and to the right in the frame on IE only. On the others, the banner is showing properly. The banners are all 468x60 so I made the frame larger(you can see the final size in the code above), but IE just keeps pushing the banner outside the frame. I can’t afford to make it any larger.
Does anyone have any ideas on getting the single image to start in the upper left of the iframe for IE? I would love to be able to shrink the iframe size back down to where it belongs.
Of note in the third image is the fact that the text at the bottom of the banner is being cut off. Some banners have quite important information at the bottom(like phone numbers) that are unreadable in IE.
just a guess…but it could be the default margin and/or padding of the html page within the iframe pushing your image. try zeroing the values to see if it makes any difference.
yes. all browsers have default values for several properties…including margins. since the embedded page has no styling, what I’m assuming is that the default margin values are pushing your image down.
to see if that’s the problem, try zeroing the margin value inline…