Okay, CSS isn't a programming language, but you get the idea... Today I was getting acquainted with the universal selector (*) in CSS, and was wondering what is approrpiate use/good programming style with this all powerful selector?
For instance, most of my sites use the same font-family for all elements (maybe one or two exceptions), and I could either set in the stylesheets something like:
or I could just do:
and take a nap.
Any reason, stylistically, intuitively, or otherwise, why I shouldn't?
Thanks - Jim
For instance, most of my sites use the same font-family for all elements (maybe one or two exceptions), and I could either set in the stylesheets something like:
Code:
BODY, TH, INPUT, etc. etc. { font-family:verdana }
or I could just do:
Code:
* { font-family:verdana }
and take a nap.
Any reason, stylistically, intuitively, or otherwise, why I shouldn't?
Thanks - Jim