Forum Moderators: not2easy

Message Too Old, No Replies

Order of Style and Class

in what order are these processed

         

jdoggz316

5:29 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



hello - just curious -

If i have an external css file:

div.test {margin-left:30px;}

and my markup:

<div class="test" style="margin-left:10px;">something</div>

What wins? is the margin-left 30px or 10px - is this treated differently from browser to browser?

Thanks!

DanA

5:34 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



10px wins
Any browser supporting css will do that.

jdoggz316

5:38 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



ok great - Thanks!