margins in CSS - Netscape (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


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 -> 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 this

p { 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.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875