Prev | Current Page 360 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Borders are placed on top of the
element??™s background.
Value
This property takes any valid CSS color
value or color keyword (p. 33). The
initial value for this property is the value of the color property for the element.
Example
This style rule assigns a green color to the
left-hand border of paragraphs within the
element with ID "example":
#example p {
border-left-color: green;
border-left-style: solid;
}
The value transparent allows the border to be transparent, but it will still occupy
the space set by the border-width property and allow the background of the element
to show through the transparent border.
Note that a border will only be visible as long as a border-style has been set. The
default for border-style is none, which means that no border will display, and the
border-width will be reset to zero.
Compatibility
SPEC
version initial inherited
CSS1, 2.1 see below NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
Opera Safari Firefox Internet Explorer
9.


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