PDA

View Full Version : Abt the height from percentage to pixels


anandraj
06-25-2003, 10:18 AM
Hi all,
I have div inside that i have one more tag. the tag inside has to chnage according to the height of the outer tag.
I have given the height in percentage for the outer tag. when i say inner tags height= outer height -2. it is taking as a pixel.
Is there any way to handle this.


Thanks
Anandraj.A.

Roy Sinclair
06-25-2003, 02:44 PM
The way to handle that is to add a unit of measure:

height= (outer height - 2) + "%"

or

height= (outer height - 2) + "em"