Prev | Current Page 381 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
Box Properties
border
border: { [border-width] [border-style]
[border-color] | inherit } ;
The shorthand property border sets the
border-width, border-style, and
border-color for all four sides of an
element using the values specified.
Unlike the shorthand margin property,
you cannot set each border to a different
width (or have different colors and
styles for each border) using just the
shorthand border property. To specify
SPEC
version initial inherited
CSS1 see below NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
Example
This style rule assigns a 2px red border to
all four sides of paragraphs within the
element with ID "example":
#example p {
border: 2px solid red;
}
The Ultimate CSS Reference 256
different values for each side, you??™ll need to refer to the property values for the
shorthand styles border-width, border-style, and border-color.
It??™s also possible to be more specific, and apply an individual border-style,
border-color, or border-width to a particular side.


Pages:
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393