Hi All,
I've been playing with this for a while for pet project, and found that there is no way to to get rid of a 1 pixel height in a div in IE.
Here's what happens in IE:
1. If the div starts with no content and the height is 0
2. you add content and the height goes to the content height.
3. you remove content and the div height shrinks to 1 pixel, no matter what.
I've tried setting the font size to 0, using a 0px height img, etc. and nothing works. Finally, I just incorporated the 1px height into my design.
Here's what I had been working on, in case anyone wants to see the code: http://www.proteinmedia.com/main/0406/index.php
Click on 'pictures' and 'words' to toggle content. It's pretty simple, but maybe it will help someone.
Arijit -- protein.media.inc
tel: 202.462.4700 cel: 202.441.0764 fax: 202.318.1176 eml: [EMAIL PROTECTED] web: http://www.proteinmedia.com
[EMAIL PROTECTED] wrote:
I think chaning the visibility makes it dissapear, but the browser still leaves room for it. I'm not sure the right DynAPI way to change it, but if I was doing it with straight CSS, I'd set "display:false".
Good luck.
Jesse
The following code works in Firefox, but not in IE. In Firefox the layer dissapears completely, in IE there is a blank area left. Am I doing something wrong?
<html> <head> <script language="JavaScript" src="dyn.js"></script> </head>
first line<br> <div id="progress"> second line<br> </div> third line<br>
<br> <b>the above should look like this (the layer should be completely invisible):</b><br><br>
first line<br> third line<br>
<script language="Javascript"> <!-- var progress = DynLayer.getInline("progress"); progress.setVisible(false); progress.setHTML(""); //--> </script> </html>
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help
