Previous Message
Next Message

Padding and Margins different in Firefox Explorer Opera HELP

Sent by Luc on 19 October 2004 18:06


Good evening pixelpix,     

It was foretold that on 19-10-2004 @ 13:03:45 GMT+1300 (which was
2:03:45 where I live) pixelpix would write:

<snipped a bit>

p> I just need a bit of help with margins and padding, how Firefox,
p> Opera, Explorer define them or some pointers that may make things fit
p> better.

Add this to your stylesheet:

html, body {
   margin : 0;
   padding : 0;
}

Fixed it for me in FF.
  
Because the root of the document tree serves as the initial containing
block  for  layout  on  the  canvas, some browser manufacturers (i.e.,
Opera)  seem  to  have decided to define the default margin/padding of
the  viewport  in  their  default  browser stylesheet on the html element.

Others  define  it on the body for backward compatibility reasons (the
body  has  traditionally been used as the initial containing block for
the purposes of displaying documents in the viewport).

Since  the  W3C  specs leave it up to browser manufacturers to do this,
defining  zero  margins  on both the html and body will set both to
zero and you can start with a fresh slate.
 
-- 
Best regards,
 Luc
_________________________

http://www.dzinelabs.com

Need a website?
http://www.w-orx.com

Powered by The Bat! version 3.0.1.33 with Windows 2000 (build 2195),
version 5.0 Service Pack 4 and using the best browser: Opera.

It is often said: "Always put off tomorrow what you can do today", but
if the toilet is out of order, I am not sure if that still holds.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: