Quote:
Originally Posted by Brett Merkey
@ JSWolf
I agree with you on stacking selectors. But...
Sorting a well-constructed stylesheet is the fastest way of destroying it. You can construct a smaller, more flexible, more powerful stylesheet by working with the cascade. I know that Calibre has a tool to alphabetize selectors but perhaps it is good that the tool is fairly well hidden.
|
I highly dislike any CSS that requires it to be in a specific order. There's no need of it. It's best to use classes in the code instead of stacking so classes are not needed.
Trying to shorthand can come back to bite you. For example, using margin: instead of say margin-left: etc. can bit you if it's on an older nook.
Just do it all long form and you'll be better off.