![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Is there any way to control the space between top of browser or frame and document body? What I have is this: There is a simple file test1.html, and file test.html that displays test1.html in an iframe. On the iframe I set marginheight and marginwidth to zero. But there is one line of blank space between the top border of the iframe and the first line of text. However, the iframe's content document's body's offsetHeight gives the height without considering this extra space between the top margin of the iframe and the body. As a result, when I set the iframe's height to the offsetHeight through Javascript, it is not big enough but one line. This is on Mozilla 2.0. |
#2
| |||
| |||
|
|
body { margin: 0; padding: 0; } |
#3
| |||
| |||
|
|
On Sep 12, 10:54 am, Harlan Messinger hmessinger.removet... (AT) comcast (DOT) net> wrote: body { margin: 0; padding: 0; } Did not work. In my file test1.html I tried both body style="margin: 0; padding: 0;" and style type="text/css" body { margin: 0; padding: 0; } /style |
#4
| |||
| |||
|
|
I supposed you could try html, body { margin: 0; padding: 0 } |
![]() |
| Thread Tools | |
| Display Modes | |
| |