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

34 lines
539 B
HTML

<html>
<head>
<style>
#first {
position: relative;
width: 90px;
height: 90px;
border: solid 1px;
}
#abs {
position: absolute;
left: 30px;
top: 30px;
height: 30px;
width: 30px;
background: blue;
}
#abs2 {
position: absolute;
background: green;
height: 15px;
width: 15px;
}
</style>
</head>
<body>
<div id="first">
<div id="abs">
<div id="abs2">
</div>
</div>
</div>
</body>
</html>