Your posts are always brilliant; I know you've solved a few of my problems! Isn't declaring the color bad practice now a days though? I thought it was always preferred to use rgb or hex?
Why is it a bad practice to use the color:green instead of hex.. I sometimes used to use it.[/QUOTE]
For several reasons:
- literal colors are "rude". Designers hardly use the rude colors, for instance #ff0000 which is the equivalent of "red"
- there is no assurance that literal values are interpreted the same in all the browsers
- graphic design is dependent by tools like Photoshop, Illustrator, CorelDraw... You will never find literal values for colors there, will you? :rolleyes: So how can you assort a hexa or a rgb value with a literal one? After all there are tens of nuances of, let's say, green, so that a simple "green" value is not descriptive at all.