Files
servo/tests/wpt/css-tests/css21_dev/html4/text-align-002.htm

22 lines
937 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Text-align set to 'right'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-text-align">
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop">
<meta name="flags" content="">
<meta name="assert" content="The 'text-align' property set to 'right' on a block element aligns the text to the right.">
<style type="text/css">
div
{
border: 1px solid blue;
text-align: right;
}
</style>
</head>
<body>
<p>Test passes if the words "Filler Text" below are aligned to the right, inside the blue box.</p>
<div>Filler Text</div>
</body>
</html>