Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I don't understand why people write CSS this way...
#5
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.
Reply


Messages In This Thread
Re: I don't understand why people write CSS this way... - by ka jowct - 09-13-2007, 06:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)