Click to See Complete Forum and Search --> : Page Margins


Jick
07-28-2003, 10:32 AM
How do I do page margins in CSS? I know how to do it this way:

<body topmargin="50" leftmargin="50">

But I'm not sure about how to do it with CSS? :p

pyro
07-28-2003, 10:43 AM
This will set all the margins for the page (top, right, bottom, and left)

<body style="margin: 50px;">

To do them individually, it's margin-left, margin-top, etc....

Jick
07-28-2003, 10:52 AM
I had one more question that is along the same lines so I figured it would be easyer to post it here and not make another post.

What is the code to link to an external CSS file?

pyro
07-28-2003, 11:13 AM
Something like this:

<link rel="stylesheet" href="stylesheet.css" type="text/css">