...

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



bazz
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?

Bazz

rmedek
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;
}

ronaldb66
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.

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

Bazz :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum