On Jul 13, 2011, at 8:25 AM, John 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?

E {
        border: 1px solid black;
        border-width: 1px 0;
}

6 characters less :-)
(you /could/ omit the 'color' as well, if all you want is a border the same 
color as the text color)

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
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/

Reply via email to