Height:100% is not considered
- by Ivan90
Hi guys,
I would want to simulate the behavior of a table with div.
I have a struct of my layout divide into three columns:
div#wrapper {
width:800px;
float:left;
height:100%;
margin-top:7px;
text-align:center;
}
div#left {
width:167px;
float:left;
padding-bottom:50px;
margin-right:3px;
}
div#main {
width:454px;
float:left;
}
div#right {
width:167px;
float:left;
margin-left:3px;
}
wrapper is the container of three columns left,main,right
div "main" have a variable content so in some case is more long and in other case is very short. When the content vary,div wrapper is adapted and it's ok but left and right columns don't adapt to wrapper.
P.S Without doctype there is no problem, infact I set the height of left, main and right to 100% but when I insert transional.dtd , the height of div is not considered.
How can resolve this problem?
Sorry for my english!!