Forum Moderators: open

Message Too Old, No Replies

Opera 6.1

More Margin Questions...

         

madcat

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

WebmasterWorld Senior Member 10+ Year Member



Hey-

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

--Thanks
Madcat

sparrow

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?

Brett_Tabke

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

WebmasterWorld Administrator 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;
}

madcat

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

WebmasterWorld Senior Member 10+ Year Member



Thanks-

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.