View Full Version : Resize div

07-08-2003, 12:21 AM
Hi all,

I have a document that is created on the fly and have ran into a problem. In IE, the document will scroll all the way down so that you can see all of the info, like it should. In NS7, I get 1 of 2 things:
1) the document shows with no scrollbars at all.
2) I get scrollbars but they do not allow me to scroll all of the way to the bottom of the document.

So, I decided to try to resize the div on the fly. I am using this script to try to do the resize:

function h(){
var obj = document.getElementById("Tall");
alert (sHeight);
alert (sHeight);

I use this in an external stylesheet to define everything.

.Text {
position: relative;
top: 195px;
left: 10px;
width: 500px;

I threw the alerts in there to keep track of what is going on. In IE, the alerts return the values that I expect them too, and the div gets resized. In NS both alerts return the same value (both will return 511 for example), and the div does not get resized, thus the info I have displaying winds up getting clipped. It doesn't seem to matter how much info is displayed, if it is more than a screen full, it is clipped. I even noticed at one point that I would have needed about another 3 lines, and it was clipped. But, another time, I scrolled down for 2 screens and the rest was clipped (approximately half the data by what I could tell).

So, does anyone have any idea how to either a) solve the problem of all of the data not showing without using a div that is some outrageously large height or b) get this resize to work so that I can hopefully get all of the info available on the screen.

Any ideas will be gratefully accepted and tried out! :-)


07-08-2003, 02:26 PM
I think you're going to want to kick yourself when you find out the solution.

Just change the line




07-08-2003, 04:54 PM
Wouldn't overflow: scroll work?

07-08-2003, 04:58 PM
You're right.... I do want to kick myself after that. :-)

Thanks for the info, works great.