4 replies [Last post]
MadMax
Offline
newbie
Last seen: 16 years 27 weeks ago
Joined: 2005-11-18
Posts: 5
Points: 0

Hello,
I have an IFRAME with this style:
width:215px; height:119px; border:0; margin:0; padding:0;
The IFRAME source is an HTML which contains an image having the attribute border=0 (width=215px and height=119px) and the body of this IFRAME src has margin: 0; padding: 0; border: 0.
In FF it looks just fine, in IE appear scrollbars Sad
Attached are 2 images, one for FF and one for IE....

Am I missing something here? Sad

TIA!

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 9 years 36 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Again differences between FF and IE :(

Probably Smile

Did you try making the Iframe space bigger (by a lot) to see if the scrollbars go away. If they do, then make it smaller until you find the size required to make it fit.

Also, have you zeroed padding & margins on the html & body elements in the page containing the image?

MadMax
Offline
newbie
Last seen: 16 years 27 weeks ago
Joined: 2005-11-18
Posts: 5
Points: 0

Again differences between FF and IE :(

Chris..S wrote:

Did you try making the Iframe space bigger (by a lot) to see if the scrollbars go away. If they do, then make it smaller until you find the size required to make it fit.

Yes, I did that, but then IE shows some "border" same colour with the system background colour. I've tried to set the background-color: transparent, but no results.

Chris..S wrote:

Also, have you zeroed padding & margins on the html & body elements in the page containing the image?

"....and the body of this IFRAME src has margin: 0; padding: 0; border: 0. " <---- I did this, too

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 9 years 36 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Again differences between FF and IE :(

Interesting, I guess I should have looked up iframe in the first place (or you should Tongue) http://www.w3.org/TR/html401/present/frames.html#adef-scrolling

so

<iframe src="somepage.htm" scrolling="no" />

MadMax
Offline
newbie
Last seen: 16 years 27 weeks ago
Joined: 2005-11-18
Posts: 5
Points: 0

Again differences between FF and IE :(

That saved my day!!!
Thank you very much! Smile