<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style> | |
#container { | |
position: relative; | |
width: 400px; | |
height: 100px; | |
border: 1px solid black; | |
} | |
.box { | |
position: absolute; | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
left: 150px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="container"> | |
<div class="box"></div> | |
</div> | |
</body> | |
</html> |