Jahren
11-09-2009, 02:51 PM
Man I grow tired of this,
How can I set a height of 100% to a flaoting div?
I have a container with no fixed height.
in that container, a left div with no fixed height since I want it to grow with content.
and a right div that's always 100% height and should grow when left div grows.
I tried:
html:
<fieldset class="redaction_global_container">
<div class='redaction_contenu'>
test<br />
test<br />
test<br />
</div>
<div class='redaction_cours_panel'>test test</div>
<div class='clear'></div>
</fieldset>
css:
html,body{height:auto; min-height:100%;}
body{font-size:13px;font-family:Tw Cen MT,tahoma;background-color:#FFFFFF;padding:0px;margin:0px;height: 100%; width:100%;}
html {height: 100%; width:100%; margin: 0;padding: 0;}
.redaction_global_container{width:60%; position:relative; margin:10px auto 70px auto; padding:0; background-color:white; text-align:left; font-family:Tw Cen MT,tahoma;}
.redaction_marquise{position:fixed; background-color:#8A9738; width:100%; height:30px; bottom:0px; z-index:2;}
.redaction_contenu{width:70%; background-color:blue; margin:1%; float:left;}
.redaction_cours_panel{width:28%; height:100%; float:left; background-color:#CCCCCC; text-align:left;}
How can I set a height of 100% to a flaoting div?
I have a container with no fixed height.
in that container, a left div with no fixed height since I want it to grow with content.
and a right div that's always 100% height and should grow when left div grows.
I tried:
html:
<fieldset class="redaction_global_container">
<div class='redaction_contenu'>
test<br />
test<br />
test<br />
</div>
<div class='redaction_cours_panel'>test test</div>
<div class='clear'></div>
</fieldset>
css:
html,body{height:auto; min-height:100%;}
body{font-size:13px;font-family:Tw Cen MT,tahoma;background-color:#FFFFFF;padding:0px;margin:0px;height: 100%; width:100%;}
html {height: 100%; width:100%; margin: 0;padding: 0;}
.redaction_global_container{width:60%; position:relative; margin:10px auto 70px auto; padding:0; background-color:white; text-align:left; font-family:Tw Cen MT,tahoma;}
.redaction_marquise{position:fixed; background-color:#8A9738; width:100%; height:30px; bottom:0px; z-index:2;}
.redaction_contenu{width:70%; background-color:blue; margin:1%; float:left;}
.redaction_cours_panel{width:28%; height:100%; float:left; background-color:#CCCCCC; text-align:left;}