The style declarations which apply to the text below are:

.zero {background-color: silver; padding-right: 0;}
.one {padding-right: 0.5in; text-align: right; background-color: aqua;}
.two {padding-right: 25px; text-align: right; background-color: aqua;}
.three {padding-right: 5em; text-align: right; background-color: aqua;}
.four {padding-right: 25%; text-align: right; background-color: aqua;}
.five {padding-right: -20px; text-align: right; background-color: aqua;}

This element has a class of zero.

This element should have a right padding of half an inch, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 25 pixels, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 5 em, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 25%, which is calculated with respect to the width of the parent element. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have no right padding, since negative padding values are not allowed. Both the content background and the normal padding should be aqua (light blue). The text has been right-aligned in order to make the lack of right padding easier to see.

TABLE Testing Section
 

This element has a class of zero.

This element should have a right padding of half an inch, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 25 pixels, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 5 em, which will require extra text in order to test. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

This element should have a right padding of 25%, which is calculated with respect to the width of the parent element. Both the content background and the padding should be aqua (light blue). The text has been right-aligned in order to make the right padding easier to see.

  • The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order to test.
  • This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the UL element.

This element should have no right padding, since negative padding values are not allowed. Both the content background and the normal padding should be aqua (light blue). The text has been right-aligned in order to make the lack of right padding easier to see.