Re: topmargin - leftmargin alternatives

by "oecih" <oecih(at)hotpop.com>

 Date:  Fri, 2 May 2003 20:59:28 +0700
 To:  <hwg-style(at)hwg.org>,
"R & L Rasmussen" <ideas(at)cfl.rr.com>
 References:  rr
  todo: View Thread, Original
----- Original Message -----
From: "R & L Rasmussen" <ideas(at)cfl.rr.com>
Subject: topmargin - leftmargin alternatives

> Hi, is there a css equivalent to leftmargin - topmargin  (for IE) -
> marginwidth and marginheight (for NN)?

you can use margin, works for most css browser, AFAIK.

exp.
body { margin: 10px; }
/* set top, left, right, bottom margin to 10px */

body { margin: 10px 20px 30px 40px; }
/* top: 10, right: 20, bottom: 30, left: 40px */

body { margin: 10px 20px; }
/* top & bottom : 10, right& left : 20 px */

body { margin-top: 10px; margin-bottom: 20px; margin-left: 30px;
margin-right: 40px; }
/* self explanatory */

rgds,
dmw

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA