2 ms·
Er, or you could do <em class="yellow">Yellow Text!</em>. But that's not even the best. What if he wants to change the color later? <em class="specialEmphasis">
by warfangle 18y ago
Er, or you could do <em class="yellow">Yellow Text!</em>. But that's not even the best. What if he wants to change the color later? <em class="specialEmphasis">Special Text!</em>.
CSS classes should be used sparingly and by purpose: they should describe the function of the element, and not the look of the element.
But that's just semantics ;) (har, har).
ASP.net uses code generated html for a lot of things: server controls, some user controls, and so forth. It can be a pain to override them if the markup they generate is crap (and from my experience, the built-in server controls and many of the 3rd party controls generate crap).
- run4yourlives 18y agoYou could, but I get to use my yellow text elsewhere, sans emphasis. :P Not calling it yellow I think is the more important piece. In fact class="sctmtdt" seems best to me. * (Stupid Client Told Me To Do This) :-)