This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 917

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: 917


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: 917

so, is there any resolution to my issue ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Div not expanding
 
Similar Threads
Firefox is driving me nuts - can't control td height
center a div inside a div
problem in running a servlet
Scroll table within a table not working
Scroll of div fail to work when table row inside it is higlighted