blob: d3609000793269bd8edf1de6c9f0b2cc477f8742 [file] [log] [blame]
<!DOCTYPE html>
<style>
.container {
font: 40px/1 Ahem, sans-serif;
line-height: 40px;
width: 110px;
height: 40px;
overflow: hidden;
white-space: nowrap;
color: green;
}
.circle {
width: 138px;
height: 40px;
background-color: green;
}
</style>
<body>
<p>You should see a green rectangle. You shouldn't see any red.</p>
<div class="container">
<div style="float: left" class="circle"></div>
X
</div>
<div class="container" style="text-align: right">
<div style="float: right" class="circle"></div>
X
</div>
</body>