Prev | Current Page 357 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Borders are placed on top of the
element??™s background.
Value
Example
This style rule assigns a 2px blue border
to the bottom side of paragraphs within the
element with ID "example":
#example p {
border-bottom: 2px solid blue;
}
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
241 Box Properties
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. Otherwise, no border will show and the
border-width will be reset to zero.


Pages:
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369