The style declarations which apply to the text below are:
.zero {background-color: silver; margin-right: 0; text-align: right;}
.one {margin-right: 0.5in; text-align: right; background-color: aqua;}
.two {margin-right: 25px; text-align: right; background-color: aqua;}
.three {margin-right: 5em; text-align: right; background-color: aqua;}
.four {margin-right: 25%; text-align: right; background-color: aqua;}
.five {margin-right: -10px; background-color: aqua;}
This element has a class of zero.
This sentence should have a right margin of half an inch.
This sentence should have a right margin of 25 pixels.
This sentence should have a right margin of 5 em.
This sentence should have a right margin of 25%, which is calculated with respect to the width of the parent element.
This element has a class of zero.
This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue background. In all other respects, however, the element should be normal. No styles have been applied to it besides the negative right margin and the background color.
| TABLE Testing Section | |
This element has a class of zero. This sentence should have a right margin of half an inch. This sentence should have a right margin of 25 pixels. This sentence should have a right margin of 5 em. This sentence should have a right margin of 25%, which is calculated with respect to the width of the parent element.
This element has a class of zero. This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue background. In all other respects, however, the element should be normal. No styles have been applied to it besides the negative right margin and the background color. | |