*Jamie* <en***********@yahoo.com>:
td#main {/*...*/ border: 2px solid #797; border-width: 2px 2px 2px 1px; }
Isn't it redundant to have "2px" in the border rule when you have an
explicit border-width rule?
Yes, I would write it like this:
border: 2px solid #797; border-left-width: 1px;
Note that
border-width: 2px 2px 2px 1px; border: 2px solid #797;
wouldn't work as desired, because all four borders would be 2px.
Some UAs may also make borders 'medium' wide for
border-width: 2px 2px 2px 1px; border: solid #797;
but AFAIK that would be wrong, although 'medium' is the initial value for
'border-(top|right|bottom|left)-width' and (most) shorthand properties
reset to initial if no explicit values are given. They would be right if
those rules were not in the same ruleset, i.e.
foo {border-width: 2px 2px 2px 1px;}
* foo {border: solid #797;}
I'm not totally sure about that, so CMIIW, please!
--
"The squeaking wheel doesn't always get the grease.
Sometimes it gets replaced."
Vic Gold