For example, to target the top
border of an element you??™d use the properties border-top-width, border-top-color,
and border-top-style. (You can target other sides of the element in the same way,
substituting ???top??? in the above property for ???left,??? ???right,??? or ???bottom??? as required.)
Borders are placed on top of the element??™s background.
Value
Refer to the following individual properties for specific information on allowed and
initial values: border-width (p. 254), border-style (p. 251), and border-color
(p. 249).
Negative length values are illegal.
As with most shorthand properties, you don??™t need to specify all the properties
listed, but any omitted properties will revert to their default values. In the case of
border-style, if you omit a value no border will show at all, because the default
value is none. A border will only be visible as long as the border-style property
has been set to something other than none or hidden, or has been restated explicitly
after the initial shorthand declaration.
Pages:
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394