![]() |
HTML question
I use topmargin="0" leftmargin="0" oin the body
In IE it looks all good with no space on the left and top side, but with Netscape and Opera there still is about 1cm white space.. How can I fix this? ------------------ Life's a bitch |
Is it possible to set your BGCOLOR in your body to match the BG color of the graphic, or table that your trying to set to topmargin="0" leftmargin="0"
I've also had trouble with this. Go here http://htmlgoodies.earthweb.com/ and notice that even in Netscape he doesn't have that white space. Maybe try learn it from his source, I looked but didn't see anything out of the ordinary. Maybe his BG image is what helps to eliminate the white space. ------------------ ...:::End Of Line:::... ------------------ * uSexFan.com * ICQ : 114683191 |
Here's something interesting. I actually have the exact opposite problem http://LeeannOnline.com
In Netscape, it works fine. In IE, I get that 1cm gap. This may help to know, My body tag has this in it, leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 According to "html for dummies - The quick reference 2nd Edition" (my one and only html book) the marginwidth, and marginheight tags are only used for Frames in IE. Maybe that explains why @ LeeannOnline it works in netscape and not IE. ------------------ ...:::End Of Line:::... ------------------ * uSexFan.com * ICQ : 114683191 [This message has been edited by RedShoe (edited 06-03-2001).] |
I use that code in the body tag so the
whole page including all tables will be shown without white space.. ------------------ Life's a bitch |
*posted html code here, but html is enabled*
[This message has been edited by MrCockTale (edited 06-03-2001).] |
ahh thanks RedShoe, I added
marginwidth=0 marginheight=0 and it works now.. in IE AND Netscape.. So I guess this is the solutions, add body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 to the body tag (WITHOUT "") ------------------ Life's a bitch [This message has been edited by MrCockTale (edited 06-03-2001).] [This message has been edited by MrCockTale (edited 06-03-2001).] [This message has been edited by MrCockTale (edited 06-03-2001).] |
It doesn't work with Opera, because those attributes are NS/IE proprietary stuff. Opera only recognizes the correct W3 HTML standard. So you have to use CSS to set the document margins to zero width.
Add this style="margin: 0px" to your BODY tag, or <style type="text/css"> <!-- BODY {margin: 0px} --> </style> to your HEAD tag. |
MrCockTale, when attribute values are pure numbers, it doesn't matter if you sorround them with quotation marks or not. It works both ways, and has exactly the same meaning to a browser. http://bbs.gofuckyourself.com/board/smile.gif
|
If I remove the "" it works with Opera,
Netscape en IE and if I don't remove them it only works with IE. ------------------ Life's a bitch |
use a background image ....we used one for this site here at the office....
|
All times are GMT -7. The time now is 11:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123