W3C home > Mailing lists > Public > www-style@w3.org > November 2001

Re: Newbie questions

From: Thomas Watson <w@tson.dk>
Date: Thu, 22 Nov 2001 09:51:55 GMT
Message-ID: <20011122095155.16415.qmail@ns.graffen.dk>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: Sean LeBlanc <seanleblanc@home.com>, www-style@w3.org
I'm not sure, but shouldn't all measurements be in some form of unit? (Inch, 
pixel etc?) 


body {
  border: 0px;
  padding: 0px;
  margin: 0px;

I know that IE 6 has a hard time figuring out what to do with the integer 
"0" if no unit is provided. 

Besides that I think it's a good custom always to clearly show what unit you 
are using instead of relying on a default value. 


Boris Zbarsky writes: 

>> #header {position: absolute; top: 40px; left: 0px; width: 100%; color:
>> white; background: blue}
> Try adding "border: none; padding: 0; margin: 0;" 
> It's quite possible that IE has a nonzero default for one of these for
> whatever element has id "header" in your document. 
> Boris
> -----------------
> 617-864-9910
> -----------------
> "Windows is packaged with Solitaire (ooh)! Linux is 
> distributed with Doom ... you can have your deck of
> cards, I'll take a chainsaw!"  
>                   --- paraphrase from comp.os.linux.advocacy 
Received on Thursday, 22 November 2001 05:37:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT