Forum Moderators: open

Message Too Old, No Replies

Iframe 100%

IFRAME 100% Question

         

photocroatia

1:21 pm on Apr 11, 2004 (gmt 0)

10+ Year Member



width="100%" height="100%" doesn't fill the page 100%, there seems to be a 1/2 CM space on all sides of the IFRAME.

Is there a work around for this?

Thank you very much.

Birdman

1:41 pm on Apr 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You probably need to set the body's(of the main page) margin to zero.

<body style="margin: 0; padding: 0;">

isitreal

8:03 pm on Apr 11, 2004 (gmt 0)

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



Also the html, like so:

html, body {
margin:0;
padding:0;
width:100%;
height:100%;
}

This I believe covers all browsers interpretations of that except Netscape 4, which doesn't support body margin/padding 0 through CSS.

photocroatia

8:53 am on Apr 12, 2004 (gmt 0)

10+ Year Member



Thank you very much, thats works great!