W3C home > Mailing lists > Public > www-html@w3.org > April 2002

Re: Removing margins with CSS

From: wrong string <jonasj@jonasj.dk>
Date: Fri, 19 Apr 2002 12:41:37 +0200
Message-Id: <200204191041.GAA22002@tux.w3.org>
To: "Nigel Peck" <Nigel.Peck@itm-solutions.co.uk>, <www-html@w3.org>
> Please could someone tell me the correct way to remove the margin from
> a page using CSS.
> 
> I am currently using;
> 
> BODY	{margin: 0 px;}
> 
> which works for IE but not NS.

try

  html {margin: 0px;}

or

  html, body {margin: 0px;}

/Jonas
Received on Friday, 19 April 2002 06:41:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:51 GMT