CSS2 Test Suite: 8.4 padding-left
[index page] [section] [Previous] [Next] [Specification]
The style declarations contained within this page:
.test {background-color: silver; margin: 0.5em 0;}
.cl1 {padding-left: 10px;}
.cl2 {padding-left: 15px;}
.cl3 {padding-left: 1em;}
.cl4 {padding-left: -2px; background-color: aqua;}
[test] This 'div' element has no left padding applied to it, and acts as a reference point.
[test cl1] This 'div' element should have a left padding of 10 pixels.
[test cl2] This 'div' element should have a left padding of 15 pixels.
[test cl3] This 'div' element should have a left padding of 1em.
[test cl4] This 'div' element should have a left padding of zero, as negative padding values are not permitted, and an aqua background.
[index page] [section] [Previous] [Next] [Specification]