Forum Moderators: not2easy
.tableBorder {border: solid; 0px; 1px; 1px; 1px; #d2e4f1;}
...but this isn't working. Anyone know?
test it and see..
div {
border: 0 1px 1px solid #000;
}<div>some text</div>
why it won't work is because border is a shorthand property which can only be used to set ALL FOUR borders of an element the same.. it will only accept three values
border: [1 x width] [1 x style] [1 x color];
yes you can target each individual property like you describe, but only on a different type of border shorthand
border-width: 0 1px 1px
border-style: solid dotted inset dashed;
border-color: #000;
each of those three will accept up to four values like you describe, depending which/how many of the borders you want to target.
there are three different ways to use border shorthand, and it's usually a choice (CSS and it's choices heh!) as to what fits best :)
Suzy