On Wed, Jul 13, 2011 at 7:25 AM, John <[email protected]> wrote:
> div {
> border:1px solid black;
> border-left:0;
> border-right:0;
> }
>
> This is for having the border at the top and bottom, of course, but is there
> a more elegant way to do it? I thought it could be some thing like:
>
> div {
> border: 1px 0 1px 0; 1px solid black;
> }
>
> using the order of Top Right Bottom Left as the argument, but it doesn't
> work for me. maybe I have things muxed around..
I prefer like this:
div {
border-style: solid;
border-color: black;
border-width: 1px 0;
}
When there's only two numbers, the first one is for top and bottom,
and the second is for left and right.
It's really a matter of preference. There are a lot of "right" ways to do it.
--
Ghodmode
http://www.ghodmode.com/blog
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/