servo/tests/ref/nth_child_pseudo_b.html
2014-09-08 20:21:42 -06:00

74 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>:nth-child test</title>
<style type="text/css">
div > p { float: left; width: 40px; height: 40px; margin-right: 10px; border: 1px solid black; }
div { clear: both; }
.odd, .even, .nth, .nth2, .negativen { background: green; }
</style>
</head>
<body>
<div id="odd">
<p class="odd"> </p>
<p> </p>
<p class="odd"> </p>
<p> </p>
<p class="odd"> </p>
<p> </p>
<p class="odd"> </p>
<p> </p>
</div>
<div id="even">
<p> </p>
<p class="even"> </p>
<p> </p>
<p class="even"> </p>
<p> </p>
<p class="even"> </p>
<p> </p>
<p class="even"> </p>
</div>
<div id="nth">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p class="nth"> </p>
<p> </p>
<p> </p>
<p class="nth"> </p>
<p> </p>
<p> </p>
<p class="nth"> </p>
</div>
<div id="nth2">
<p class="nth2"> </p>
<p> </p>
<p> </p>
<p class="nth2"> </p>
<p> </p>
<p> </p>
<p class="nth2"> </p>
<p> </p>
<p> </p>
<p class="nth2"> </p>
<p> </p>
</div>
<div id="negativen">
<p class="negativen"> </p>
<p> </p>
<p class="negativen"> </p>
<p> </p>
<p class="negativen"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</body>
</html>