Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Overcome firefox does not support height=100 % question

Avatar of KNVB HK
KNVB HKFlag for Hong Kong asked on
JavaScriptCSS
2 Comments1 Solution395 ViewsLast Modified:
When you execute the following code,
It work fine, however, it is because I need to make the layer resizable,
it is impossible for hard code the "height" value.
However,when I change the "height" attribute value to "100%",and click the button several times, the table size will be extend in firefox. In IE it does not extend the table size even I add a lot text in the layer.
Can you any one tell me how to fix the problem?
I am using YUI framework to make it resizable.
I am trying to capture the endresize event, however, there are no sample code, I don't know how to do so.
<html>
<body>
	<input type=button onclick="doIt()" value="add item">
	<div style="height:275">
	<table border=1 style="height:100%">
		<tr height="5%"> 
			<td>
				<select>
					<option>1</option>
					<option>2</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<div id="msg" style="width:100%;height:95;border:1px solid rgb(179, 179, 179);overflow:auto">
					d<br>a<br>t<br>a<br>
					d<br>a<br>t<br>a<br>
				</div>
			</td>
		</tr>
	</table>
	</div>
	<script language=javascript>
		function doIt()
		{
			var msg=document.getElementById("msg");
			msg.innerHTML+="fsdfs<br>";
		}
	</script>
</body>
ASKER CERTIFIED SOLUTION
Avatar of KNVB HK
KNVB HKFlag of Hong Kong imageSITO

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers