Prev | Current Page 346 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

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
The Ultimate CSS Reference 234
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. Therefore, it??™s good practice to specify a value
for the border??™s style when you??™re using shorthand notation.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Buggy Buggy Buggy
User agents are supposed to place borders on the element??™s background, but in
Internet Explorer for Windows versions up to and including 7, the background only
reaches the inside edge of the border when the element has a layout (p.


Pages:
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358