Previous Message
Next Message

Re: [css-d] why is nn6 ignoring the margin-top value?

Sent by Simon Willison on 10 September 2002 13:01


At 12:51 10/09/2002 +0200, Ines Robbers wrote:
>can someone explain to me why in internet explorer and opera my page looks
>just right but in netscape6 the div "container1" ignores the margin-top
>value 2.5em?
>it's especially strange because that same div does acknowledge the
>margin-left value 0.5em.

According to my new Bible ("CSS: Separating Content from Presentation"):

" Netscape 6 ignores the margin-top property for a static box. Sometimes. " 
(Owen Briggs)

The suggested fix is to use a margin-top on the BODY instead of the box.

Hope that helps,

Simon Willison

-- 
Web Developer, www.incutio.com
Weblog: http://www.bath.ac.uk/~cs1spw/blog/
Previous Message
Next Message

Message thread: