In CSS2.1, the
three-dimensional border styles (groove, ridge, inset, and outset) depend on the
corresponding border-color, rather than on color.
Internet Explorer for Windows versions up to and including 7:
?– don??™t support the value hidden
?– don??™t support the value inherit
Box Properties
The Ultimate CSS Reference 254
border-width
border-width: { { thin | medium | thick | length } 1
to 4 values | inherit } ;
The shorthand property border-width
sets the width of the border on all four
sides of an element using the values
specified. Each border can have its own
value.
The shorthand border-width allows all
four sides of an element??™s borders to be
set using either one, two, three, or four
specified values. Refer to the mnemonic
(TRouBLe) in Shorthand Properties
Example
This style rule assigns a 2px border to the
top and bottom sides, and a four-pixel
border to the left- and right-hand sides, of
paragraphs within the element with ID
"example":
#example p {
border-width: 2px 4px;
border-style: solid;
}
(p.
Pages:
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390