The style declarations which apply to the text below are:
.zero {background-color: silver; margin: 0;} .one {margin: 25px; background-color: aqua;} .two {margin: -10px; background-color: aqua;}
This element has a class of zero.
This element is unstyled save for a background color of gray.. It contains an inline element of class one, giving it an aqua background and a 25px margin. Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. However, there should be a 25px margin to the left side of the inline box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears.
This element has a class of zero.
This element is unstyled save for a background color of gray.. It contains an inline element of class two, giving it an aqua background and a -10px margin. Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. However, there should be a -10px margin to the left side of the inline box in the first line it appears, and a -10px margin to the right side of the inline element box in the last line where it appears.
This element has a class of zero.
TABLE Testing Section | |
This element has a class of zero. This element is unstyled save for a background color of gray.. It contains an inline element of class one, giving it an aqua background and a 25px margin. Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. However, there should be a 25px margin to the left side of the inline box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears. This element has a class of zero. This element is unstyled save for a background color of gray.. It contains an inline element of class two, giving it an aqua background and a -10px margin. Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. However, there should be a -10px margin to the left side of the inline box in the first line it appears, and a -10px margin to the right side of the inline element box in the last line where it appears. This element has a class of zero. |