17 Jan
2009
17 Jan
'09
8:19 p.m.
Johannes wrote:
On Sat, Jan 17, 2009 at 04:29:37PM +0000, corvid wrote:
I wonder whether there's a way to specify something like code, tt, pre, samp, kbd {font-family: mono !important} * {font-family: sans !important} but have sans only for elements not otherwise specified.
According to http://www.w3.org/TR/CSS21/cascade.html#specificity the first rule should overrule the second one if it matches. So this should work. Note, that the specificity stuff is not fully implemented yet, but it should be sufficient for the example above.
Does it work for you? Also, is <element style="[whatever]"> supposed to work?