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

31 lines
486 B
HTML

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