#iddiv span { display: inline-block; width: 190px; } .myclass { width:10px; }
Then I have
<
It's not working because the first style is more specific.
To fix it, make sure you target the second span more directly, like this
span
#iddiv span.myclass
http://jsfiddle.net/jasongennaro/5fe9A/