|
| |
|
|
Guest
|
margins in CSS - Netscape - 4/10/2001 20:31:00
I am trying to include margins in my CSS for my web site.I have discovered that the way you specify margins in IE and Netscape differ: ie. in IE it is leftmargin and topmargin, in Netscape it is: marginweidth and marginheight. The following is the code that i am using in my css to try to get the margins to work and it is failing on me : p {topmargin:35px; leftmargin:35px; marginwidth:35px; marginheight:35px; } please help
|
|
|
|
dayglo
Posts: 86 From: UK Status: offline
|
RE: margins in CSS - Netscape - 4/10/2001 13:57:00
the margins you are using are for page margins, yet your style is for the <p> tag i.e. paragraph. To specify for the paragraph you would have something like thisp { text-align: Left; margin-left: 5; margin-right: 6; margin-top: 4; margin-bottom: 3 } if you actually want the margins to be for the whole page then you need to attach your style to the "body", so just replace your p with body, you can also add page background colour and font colour with it as well.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|