Prev | Current Page 321 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

Negative length
values are not allowed.
In CSS2.1, if the containing block??™s width depends on an element with percentage
padding, the resulting layout is undefined.
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 Full Full Buggy
Box Properties
Internet Explorer versions up to and including 5.5 (and IE6 and IE7 when in quirks
mode) incorrectly apply padding inside the stated width, thus reducing the space
available for content??”see The Internet Explorer 5 Box Model (p. 156).
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
The Ultimate CSS Reference 218
padding
padding: { { length | percentage } 1 to 4 values |
inherit } ;
The shorthand property padding sets
the padding for all four sides of an
element using the specified value or
values. Each side can have its own
value; refer to the mnemonic (TRouBLe)
in Shorthand Properties (p. 39) for an
easy way to remember the order in
which each side is specified for the
shorthand property.


Pages:
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333