Prev | Current Page 317 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

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).
Firefox versions up to and including 2.0.0.7 incorrectly apply padding-right on
inline elements when the element wraps to a new line. The preceding line and the
current line both appear to have padding applied (see Bugzilla2).
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
2 http://bugzilla.mozilla.org/show_bug.cgi?id=122795
215 Box Properties
Box Properties
padding-bottom
padding-bottom: { length | percentage | inherit } ;
The padding-bottom property sets the
padding to the bottom side of an
element using the value specified.
Padding is the area that??™s sandwiched
between an element??™s borders and its
content. Any background image or
background color that??™s applied to the
element will extend across the padding
area. Refer to The CSS Box Model
Example
This style rule assigns a 2em padding to
the bottom side of paragraphs within the
element with ID "example":
#example p {
padding-bottom: 2em;
}
SPEC
version initial inherited
CSS1, 2.


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