CSS1 Test Suite: 6.2 Percentage Units


[Previous] [Next] [Section] [Contents] [Specification]

The style declarations which apply to the text below are:

.zero { background: yellow }
.one { margin-left: 25%; margin-right: 25%; background: white }
.two { margin-left: 50%; margin-right: 0%; background: white }
.three {margin-left: 25%;}


This paragraph should be centered within its yellow containing block and its width should be half of the containing block.

This paragraph should be right-aligned within its yellow containing block and its width should be half of the containing block.

This paragraph should have a left margin of 25% the width of its parent element, which should require some extra text in order to test effectively.

TABLE Testing Section
 

This paragraph should be centered within its yellow containing block and its width should be half of the containing block.

This paragraph should be right-aligned within its yellow containing block and its width should be half of the containing block.

This paragraph should have a left margin of 25% the width of its parent element, which should require some extra text in order to test effectively.


[Previous] [Next] [Section] [Contents] [Specification]