Prev | Current Page 314 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

See Inline Formatting (p. 166) for more information.
Value
The property takes a CSS length (px, pt, em, and so on) or a percentage of the width
of the element??™s containing block (p. 147). Note that even for top and bottom padding
the percentage value will refer to the width of the containing block. 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
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 up to and including version 6 will often need a
position:relative; declaration added to inline elements in order to show the full
amount of vertical padding.


Pages:
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326