Prev | Current Page 320 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

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 horizontal padding (padding-left and padding-right) is used on inline,
non-replaced elements, it has a different effect than it has on block-level elements.
The padding-left value is applied at the start of the inline element, while
padding-right is applied at the end of the inline element. If the element is split
over two or more line boxes, the right padding wraps to the next line with the
element. It doesn??™t apply padding to the start and end of each single line, as is the
case with block-level elements. See Inline Formatting (p. 166) for more information.
217 Box Properties
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.


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