homepage Welcome to WebmasterWorld Guest from 54.227.160.102
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

    
Opera 6.1
More Margin Questions...
madcat

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 294 posted 5:04 pm on May 9, 2002 (gmt 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

 

sparrow

10+ Year Member



 
Msg#: 294 posted 5:16 pm on May 9, 2002 (gmt 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?

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 294 posted 7:54 pm on May 10, 2002 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 294 posted 3:02 am on May 11, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved