Valhalla Legends Archive

Programming => Web Development => Topic started by: Banana fanna fo fanna on June 11, 2004, 10:39 PM

Title: JavaScript/CSS stuff
Post by: Banana fanna fo fanna on June 11, 2004, 10:39 PM
#1: I need to have a textarea and a submit button fill 100% of the area (i.e. css width: 100% and height: 100%). How do I do this?

#2: I need to conditionally check what the pixel values of width: 100% and height: 100% would be in javascript.
Title: Re:JavaScript/CSS stuff
Post by: quasi-modo on June 14, 2004, 10:29 AM
with css just say height:100%; width:100% or
{
position:absolute;
top:0px;
left:0px;
right:0px;
bottom:0px;
width:auto;
}

and there are other methods. But Ie does not like makeing things 100% high, its an ie bug, it will only make things as tall as they stretch for some reason, I have to hack that frequently. Ie sucks. I do not know the js script you wanted, sorry, I am not a js man, use it as little as possible.