Welcome to WebmasterWorld Guest from 107.20.75.63

Forum Moderators: open

Message Too Old, No Replies

Question about margin-top:0px;

full doctype, opera doesn't recognize it

     
8:32 pm on Oct 18, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
posts:637
votes: 0


I am using xhtml transitional with a full doctype, but it seems that opera doesn't recognize the css margin-top:0px; deal.

Does anyone have an explaination for this?

8:52 pm on Oct 18, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9063
votes: 2


Are you using it on the
body
tag? If so, you need
padding-top:0;
as well.

Opera's use of padding is actually more logical than the others' use of margin, but it's confusing at first.

9:08 pm on Oct 18, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
posts:637
votes: 0


encyclo,
Thanks! Heh, go figure.
12:45 pm on Oct 19, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


Hey macrost,

Don't forget that you don't need to specify a unit on 0 (zero) sizes. Since the value is zero then a unit is not needed.

HTH