Hacker News new | past | comments | ask | show | jobs | submit login

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).




You 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) :-)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: