Opera 7 margins

liunx

Guest
Here is my css:<br />
<br />
body <br />
{<br />
background-color: #AE9786;<br />
background-image: url(images/bg-200x1-jpg.jpg);<br />
background-repeat: repeat-y;<br />
text-align: left;<br />
margin-top: 0px;<br />
margin-left: 0px;<br />
}<br />
<br />
However, I can't get the margins to work correctly in Opera.<br />
<br />
Any ideas?<br />
<br />
ty, Gandalf<br />
:D<!--content-->Margin properties are problematic in Opera especially margin-left. Not sure about 7, but Opera would always add the left-margin function to all elements of a given inline element and not just the BODY declaration. Although Opera is very good at css spec they are not perfect yet.<br />
<br />
I would suggest you look at the normal HTML 4.01 declaration for margins if you want to be hot on cross browser issues.<!--content-->Might be the way Opera handles the padding element... it's very quirky. Try playing with the padding in your CSS... something like this:<br />
<br />
padding-top: 0px;<br />
padding-left: 0px;<!--content-->
 
Back
Top