View Full Version : why border : 0 4px double #000; not working

03-08-2005, 03:29 PM
I want this
border-top : 0;
border-left : 4px double #000;
border-right : 4px double #000;
border-bottom : 0;

I have succeeded slightly differently before with,
border : 2px solid #000; but that gives a border all the way around.
How do I get a border on only, the left and right with the smallest anount of CSS?


03-08-2005, 04:00 PM
I usually declare everything but the width, then the width, like so:

whatever {
border: double #000;
border-width: 0 4px;

03-08-2005, 04:01 PM
There are a couple of options, but the following two properties ought to work nicely:

border: 4px #000;
border-style: none double;
the first sets all borders to 4px black, but no style; the second adds the style for top and bottom to none (no border) and double for left and right.

03-08-2005, 05:09 PM
That's great guys thanks.

Bazz :thumbsup: