On Tue, Jul 12, 2011 at 7:18 PM, Tim White <[email protected]> wrote:

> On Tue, Jul 12, 2011 at 8:08 PM, Philippe Wittenbergh <[email protected]>
> wrote:
>
> >
> > 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
>
> You can even cut 5 more characters if you want to:
>
> E {
>  border: solid #000;
>  border-width: 1px 0;
> }
>
> Or, you could just go with:
>
> E {
>  border-top: 1px solid #000;
>  border-bottom: 1px solid #000;
> }
>
> Tim
>

If we're so interested in cutting off extra characters, why not omit spaces,
line-breaks, and the final semicolon?

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

There, 8 characters removed and still 100% valid, however, less readable.

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