Div hoogte past zich niet niet aan inhoud aan
Hier mn HTML:
Quote:
<body>
<div id="container">
<div id="header"> </div>
<div id="contentarea">
<div id="contentinhoud">
<div id="menuleft"></div>
<div class="blackline"> </div>
<div id="content"></div>
<div class="blackline"></div>
<div id="menuright"></div>
</div>
</div>
<div id="bottom"> </div>
</div>
</body>
<div id="container">
<div id="header"> </div>
<div id="contentarea">
<div id="contentinhoud">
<div id="menuleft"></div>
<div class="blackline"> </div>
<div id="content"></div>
<div class="blackline"></div>
<div id="menuright"></div>
</div>
</div>
<div id="bottom"> </div>
</div>
</body>
en hier mn CSS:
Quote:
html {
height: 100%;
margin: 0;
padding: 0;
}
body {
width: 100%;
text-align: center;
background-image: url(../images/background.png);
background-repeat: repeat-y;
background-position: center top;
background-color: black;
margin: 0;
padding: 0;
min-height: 100%;
}
#container {
width:1200px;
margin: auto;
margin-top: 10px;
min-height: 100%;
}
#header {
background-image: url(../images/header.png);
width: 1200px;
height: 197px;
}
#contentarea {
background-image: url(../images/bgcontent.png);
background-repeat: repeat-y;
background-position: center top;
width: 1200px;
position: relative;
min-height: 100%;
height: auto !important;
}
#bottom {
background-image: url(../images/contentbottom.png);
background-position: center;
width: 1200px;
height: 30px;
}
#contentinhoud {
width: 1160px;
margin: 0px 20px 0px 20px;
min-height: 100%;
}
.blackline {
margin-top: 15px;
margin-left: 12px;
margin-right: 12px;
width: 1px;
height: 400px;
background-color: black;
float: left;
}
#menuleft {
width: 250px;
min-height: 1px;
float: left;
}
#content {
width: 660px;
float: left;
min-height: 1px;
height: 100%;
}
#menuright {
width: 200px;
float: left;
min-height: 1px;
}
height: 100%;
margin: 0;
padding: 0;
}
body {
width: 100%;
text-align: center;
background-image: url(../images/background.png);
background-repeat: repeat-y;
background-position: center top;
background-color: black;
margin: 0;
padding: 0;
min-height: 100%;
}
#container {
width:1200px;
margin: auto;
margin-top: 10px;
min-height: 100%;
}
#header {
background-image: url(../images/header.png);
width: 1200px;
height: 197px;
}
#contentarea {
background-image: url(../images/bgcontent.png);
background-repeat: repeat-y;
background-position: center top;
width: 1200px;
position: relative;
min-height: 100%;
height: auto !important;
}
#bottom {
background-image: url(../images/contentbottom.png);
background-position: center;
width: 1200px;
height: 30px;
}
#contentinhoud {
width: 1160px;
margin: 0px 20px 0px 20px;
min-height: 100%;
}
.blackline {
margin-top: 15px;
margin-left: 12px;
margin-right: 12px;
width: 1px;
height: 400px;
background-color: black;
float: left;
}
#menuleft {
width: 250px;
min-height: 1px;
float: left;
}
#content {
width: 660px;
float: left;
min-height: 1px;
height: 100%;
}
#menuright {
width: 200px;
float: left;
min-height: 1px;
}
Iemand die ziet wat ik hier verkeert doe?
overflow: hidden op de #contentinhoud div
Oetzie cookie op 25/01/2011 11:33:42:
overflow: hidden op de #contentinhoud div
Bedankt man, probleem opgelost :D
#contentarea {
overflow:auto;
background-image: url(../images/bgcontent.png);
background-repeat: repeat-y;
background-position: center top;
width: 1200px;
position: relative;
height: auto !important;
}
Toevoeging op 25/01/2011 11:40:00:
Maikel oelen op 25/01/2011 11:38:32:
Bedankt man, probleem opgelost :D
Oetzie cookie op 25/01/2011 11:33:42:
overflow: hidden op de #contentinhoud div
Bedankt man, probleem opgelost :D
Oh oke... :)