Hi there.
I’m new to the DIV-layouting and I’m trying to setup a layout with DIV, but I’m running into some difficulties.
This is what I have now: [URL=”http://www.lmm-test.com/test2.html”]http://www.lmm-test.com/test2.html
As you can see, the 2 green divs left and right are over the dark blue bar. What I want is that the dark blue bar should be always on the bottom of the 2 green DIVs, no matter how long the 2 green DIVs are.
And the pink DIV “Always on left bottom” should always be on top op the dark blue bar but always be below the left green DIV.
Can anyone give me a hint what I’m doing wrong here.
Hope you can help me,
Leon
This is the code I use now:
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
<style type=”text/css”>
<!–
.container {
position: relative;
background-color:#FFFF00;
width:960px;
}
.sfeerbeeld {
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
background-color:#663300;
width: 960px;
height: 225px;
}
.links {
position: absolute;
left: 5px;
padding: 0px;
top: 225px;
width: 150px;
background-color:#66FF66;
}
.linksblok {
position: absolute;
left: 5px;
padding: 0px;
bottom: 50px;
width: 155px;
height: 20px;
background-color:#FF0066;
}
.midden {
margin-left: 160px;
padding: 0px;
margin-right: 160px;
top: 225px;
background-color:#99CCFF;
}
.rechts {
position: absolute;
right: 5px;
padding: 0px;
top: 225px;
width: 150px;
background-color:#CCFFCC;
}
.blok {
position: absolute;
right: 65px;
padding: 0px;
top: 135px;
width: 150px;
background-color:#ff0000;
height:150px;
z-index:100;
}
.balk {
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
background-color:#000066;
width: 960px;
height: 50px;
}
–>
</style>
</head>
<body>
<div align=”center”>
<div class=”container”>
<div align=”left”>
<div class=”sfeerbeeld”>
Big picture
</div>
<div style=”height:100%; background-color:#CCCCCC;”>
<div class=”links”>
Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />Left side / menu<br />
</div>
<div class=”linksblok”>
Always on left bottom
</div>
</div>
<div class=”midden”>
Middle / text<br />Middle / text<br />Middle / text<br />Middle / text<br />Middle / text<br />Middle / text<br />
</div>
<div class=”rechts”>
Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />Right side / news<br />
</div>
<div class=”blok”>
Small picture
</div>
<div class=”balk”>
Logos
</div>
</div>
</div>
</div>
</body>
</html>