"Cezar" <cezaryk (AT) imail (DOT) net.pl> wrote:
Quote:
Hi!.
I have this simple class:
.red {
color:#900;
} |
Bad idea. The whole idea of CSS is to keep the presentation out of the
content. If you're going to call a class "red", then you're going to
have tags in your HTML with
class="red"
which means you're specifying the color in the HTML. Then, if you
decide you want to change the color, you'll have to change the CSS to
.red { color: #009; }
which will look silly, and then you'll change
class="red"
to
class = "blue"
everywhere in your HTML document.
You ought to name the class according to its *function*, whether it's
"errortext" or "warning" or "molecular-formula" or "ingredient-list"
or whatever.
Quote:
and using with <select class="red"....
IE, FF interpreting correctly, but Opera not. Show only gray texts. Why ?
Cezar |
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ๔ter le premier point de mon adresse de courriel.