Hoogte op 100% wil wel eens helpen.
Echter wat in de ene div zit kan niet van toepassing zijn op eeen andere.
En de waarde 100% wordt niet door alle browsers hetzelfde weergegeven.
Een div is gelijk een p tag een blokelement.
How_to:
http://www.google.com/search?q=+how...ple+row+three+liquid+column&btnG=Zoeken&hl=nl
en
http://www.google.com/search?q=css+clear+boxes+example+row+three+liquid+column&btnG=Zoeken&hl=nl
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
#main {
background-color:#ffc0c0;}
#top {
width: 781px;
text-align: left;
background-color:#c0c0c0;
}
#logo {
width: 781px;
height: 100px;
}
#menu {
width: 781px;
height:14px;
}
#leftcol {
width: 160px;
float: left;
background-color:#C6C4C5;
border-left: 1px solid #000000;
border-right:1px solid #000000;
height: 50px;
}
#leftcol[id] {
height:100%;
min-height: 250px;
background-color:#c0ffc0;
}
#leftcolbottom {
vertical-align: bottom;
height: 10%;
background-color:#c0c0ff;
}
#leftcoltop {
vertical-align: top;
height:50px;
background-color:#f0c0cf;
}
#maincol {
border-right: 1px solid #000000;
width: 618px;
float: right;
height: 100%;
background-color:#cff0c0;
}
#content {
width: 781px;
text-align: left;
clear: both;
background-color:#c0cff0;
}
#menubottom {
background-color:#cfc0f0;
height: 13px;
}
#footer {
background-image:url("layout_09.jpg");
width: 781px;
height: 23px;
clear: both;
background-color:#cfc0f0;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<div align="center">
<div id="main">
<div id="top">
<div id="logo">logo</div>
<div id="menu">Menu here<br>
Menu here</div>
<div id="menubottom">menu bottom<br>
menu bottom</div>
</div>
<div id="content">
<div id="leftcol">leftcol
<div id="leftcoltop">leftcoltop<br>
</div>
<div id="leftcolbottom">leftcolbottom<br>
leftcolbottom</div>
</div>
<div id="maincol">
maincol<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
AHAHAH<br />
</div>
</div>
<div id="footer">footer</div>
</div>
</div>
</body>
</html>
en haal nu
"http://www.w3.org/TR/html4/loose.dtd"
weg en zie wat er gebeurt.
teachers link:
boxes
http://www.thenoodleincident.com/tutorials/box_lesson/boxes.html
