Prev | Current Page 334 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
The border-top shorthand property sets
border-top-width and/or
border-top-style and/or
border-top-color to the top side of an
element simultaneously.
Borders are placed on top of the
element??™s background.
Value
Example
This style rule assigns a 2px red border to
the top side of paragraphs within the
element with ID "example":
#example p {
border-top: 2px solid red;
}
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:
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346