Welcome to WebmasterWorld Guest from 54.158.188.59

Forum Moderators: open

Message Too Old, No Replies

Opera 6.1

More Margin Questions...

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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

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

Preferred Member

10+ Year Member

joined:May 3, 2002
posts:430
votes: 0


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)

Administrator from US 

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

joined:Sept 21, 1999
posts:38069
votes: 15


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members