servo/tests/ref/abs_rel_explicit_height.html
2015-08-11 11:25:26 +10:00

51 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin: 0;
}
html, body {
position: relative;
height: 100%;
}
#div0 {
position: absolute;
height: 100%;
width: 100%;
}
#div1 {
position: relative;
height: 100px;
}
#div2 {
position: absolute;
width: 100%;
height: 100%;
}
#div3 {
position: relative;
width: 100%;
height: 100%;
}
#div4 {
position: absolute;
width: 100%;
height: 100%;
background-color: green;
}
</style>
</head>
<body>
<div id="div0">
<div id="div1">
<div id="div2">
<div id="div3">
<div id="div4">
</div>
</div>
</div>
</div>
</div>
</body>
</html>