#iddiv span { display: inline-block; width: 190px; } .myclass { width:10px; }
Then I have
<
Because id+selector (#iddiv span) is more specific than a class. Either
#iddiv span.myclass
or
#iddiv .myclass
should work for this case.
Learn more about CSS specificity here or by Googling it.