View Single Post
  #7 (permalink)  
Old Sep 26th, 2007, 01:41
earl080688 earl080688 is offline
Junior Member
Join Date: Sep 2007
Location: Philippines
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div height in IE

this are my css codes..

Code: Select all
body {
    background-image:url(../images/bg2.jpg);
    background-repeat: repeat-x;
    background-position: bottom;
    background-attachment: fixed;    
    height:100%;
}

#wrapper {
    margin: 0 auto;
    width: 800px;
    position: relative;
    height:100%;
}
#topbar {
    width: 800px; 
    height: 170px; 
    position: absolute; 
    top: 0px; 
    z-index: 0;
    left: 0px; 
    
}
#main {
    width: 800px;
    height:100%;
    min-height:400px;
    max-height:800px;
    position: absolute;
    background-color:#FFFFFF;
    top:170px;
    left: 0px;
    bottom:0;
}
the wrapper contains the topbar and the main div, and i want to make the wrapper and the main divs expandable in height depends on their contents. is it possible? and also please correct my codes if you see errors. thanks again!!