|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi.
I'm working on a page where I need to remove all body margins on the page. I've set topmargin, leftmargin and so on in the body-tag, but no matter what I do, I can't get rid of the right and bottom margin... This is my HTML-code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Margin test</title> </head> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <table border="1" cellspacing="0" cellpadding="0" width="100%" height="100%"> <tr> <td width="100%" height="100%">Test</td> </tr> </table> </body> </html> As I said, no matter what I do, the table won't reach the right and bottom border of the browser, but I get a margin of about 5-10 pixels... Anybody got any nice suggestions for me? URL |
|
#2
|
|||
|
|||
|
The cross browser compatible code to remove the margins is
topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 Paul |
|
#3
|
|||
|
|||
|
Sorry didnt notice that you havfe the right code. Try it with the table border set to 0,
ive just used your code and works fine |
|
#4
|
|||
|
|||
|
Yeah, I figured that out myself...
The weird thing was, with a table with one row/cell, the table didn't reach all the way to the right and all the way down... But when I got some more cells and rows in that table, it worked out OK... Don't ask me why, I'm just smiling 'cause it works URL |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Body margin in Netscape |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|