09-13-2007, 06:20 PM
It depends on how well you have thought out the appearance of the site and how efficient you want your code to be. I much prefer the first way of doing things: combining whatever CAN be combined into a single rule.
Also, I never, ever set type sizes in px anymore, unless I am asked to do so by a client who does not know much about CSS. Otherwise, I always use ems. It's more flexible and fluid. That way of setting type sizes (relative rather than fixed) is recommended by people like Dan Cederholm and Charles Wyke-Smith, among others, and it works very nicely if done correctly.
Also, I never, ever set type sizes in px anymore, unless I am asked to do so by a client who does not know much about CSS. Otherwise, I always use ems. It's more flexible and fluid. That way of setting type sizes (relative rather than fixed) is recommended by people like Dan Cederholm and Charles Wyke-Smith, among others, and it works very nicely if done correctly.