Hiding CSS from browsers...

windows

Guest
Here's one for ya...

If I'm using the following for Opera, Netscape, Firefox, and Mozilla, what can I use for IE so that it doesn't affect the others:

html>body { margin: 10px auto; }

When I try the following, the rule gets applied to all browsers except for Opera:

html, body { margin: 10px auto; }

I just need to have ALL browsers apply the "10px auto" rule without doubling up rules in some browsers.

Thanx.Then why not just use:

body{margin:10px auto;}

That will apply the rule to ALL browsers.Tried that, but in Opera, it doesn't apply the rule to the bottom margin...only the top.

Thanx.OK, so what's wrong with this:

body{margin:10px auto;}
html>body{margin:10px auto;}
 
Back
Top