Prev | Current Page 315 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
SPEC
version initial inherited
CSS1, 2.1 0 NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE6+
FULL FULL BUGGY FULL
padding-right
padding-right: { length | percentage | inherit } ;
The padding-right property sets the
Box Properties
213 Box Properties
padding to the right 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 value
to the right side of paragraphs within the
element with ID "example":
#example p {
padding-right: 2em;
}
(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.


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