Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<title>CSS Reference File</title>
<link rel="author" title="Alan Stearns" href="mailto:stearns@adobe.com"/>
<style type="text/css">
.square {
display: inline-block;
width: 100px;
height: 100px;
line-height: 100px;
background-color: green;
}
#test {
position: absolute;
top: 70px;
width: 200px;
font-size: 0px;
}
#test > .right {
margin-left: 100px;
}
</style>
</head>
<body>
<p>
The test passes if there are four green squares alternating left and right. There
should be no red.
</p>
<div id="test">
<div class="square"></div><br>
<div class="square right"></div><br>
<div class="square"></div><br>
<div class="square right"></div>
</div>
</body>
</html>