heightの設定サンプル

static
relative
absolute
fixed
IEは無視する
HTMLコード
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_Jis">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>position</title>
<style type="text/css">
<!--
div {height: 50px;width: 100px}
div#test1 {position: static; top: 100px; left: 100px; background-color: #cff}
div#test2 {position: relative; top: 60px; left: 120px; background-color: #ffc}
div#test3 {position: absolute; top: 100px; left: 50px; background-color: #cfc}
div#test4 {position: fixed; top: 100px; left: 100px; background-color: #fcf}
-->
</style>
</head>

<body>
<div id="test1">static</div>
<div id="test2">relative</div>
<div id="test3">absolute</div>
<div id="test4">fixed</div>
</body>
</html>