It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes Div not expanding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Div not expanding" Watch "Div not expanding" New topic
Author

Div not expanding

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

This is what i wanted:

Container
- header
- content

header should auto expand horizontally and is 20px exact in height
content should have scrollbars for anything overflowing it and should take up the remainder of the container.

This is what i attempted so far....



its not up to the mark in IE7 and fails in IE6, what should i do ?

works well in firefox and chrome though...

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928


Here is a simple example of what i need:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Setting heights to percentages normally only works if the parent has a fixed height.

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

so, is there any resolution to my issue ?
 
 
subject: Div not expanding