...

View Full Version : CSS Layout Help



zduck
10-12-2002, 08:05 PM
First off the file I'm working with is www.zduck.com/example.htm

I need to make the 'treeview' and 'main' DIV's height dynamic, sortof like if I were to use a percentage to determine their height. I tried this but it wasn't consistant. The larget you resized the window, a gap would grow below the DIVs. How can I make the height of 'treeview' and 'main' fill the window? Or can I without using %'s?

redmeat
10-13-2002, 01:18 AM
This sounds a little convoluted - but if you don't want to use percentages then I would find out the availHeight values for the window and set the div's height to that value.

IE = screen.availHeight;

NN = window.innerHeight;

DOM = window.innerHeight;

eak
10-13-2002, 08:48 PM
redmeat,
screen.availHeight will tell you the available height of the users monitor not the window(for ns and ie). to find the height of the window, you need to use document.body.offSetHeight ... or something like that...

^KoalaBear^
10-16-2002, 07:18 AM
Liked your new window generator matey! :thumbsup:

MCookie
10-16-2002, 12:30 PM
Try reloading the page on resize?

<body onresize="window.location.href = window.location.href;">

joh6nn
10-16-2002, 10:02 PM
your example page seems to be working fine for me in Moz 1.1. you said you're using % for the size of the divs. are you using % for the position?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum