1 0 NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE6+
FULL FULL FULL FULL
(p. 142) for an in-depth discussion of
how padding is accommodated within the CSS box model.
When vertical padding (padding-top and padding-bottom) is used on an inline,
non-replaced element, it can cause the overlapping of elements above and below
that element in cases where the padding causes the element in question to exceed
the line height. 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
The Ultimate CSS Reference 216
Internet Explorer versions up to and including 5.
Pages:
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330