Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Opera 6.1

More Margin Questions...



5:04 pm on May 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


My pages validate at the W3C, but for some reason it won't read my 0px margins.
Is there a workaround for this behavior?



5:16 pm on May 9, 2002 (gmt 0)

10+ Year Member

I just checked mine, and 0px margins work fine for me.

I have my margins defined in a css, so I call the class in the body tag.

Are you doing 0px on the top only or where are you using the 0px?


7:54 pm on May 10, 2002 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Double check your padding. There is a mild disagreement (even in the css community), as to what browsers should default too. Usually, you can set the padding to overcome the mild differences in interpretation between nn/ie/opera.

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


3:02 am on May 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


Setting body { padding: 0px; margin: 0px; } was key for Opera.

Actually, the root of all my other problems in Opera were due to not setting both the padding and margin properties simultaneously.


Featured Threads

Hot Threads This Week

Hot Threads This Month