From: Adeola A. <awo...@ya...> - 2004-11-30 22:52:40
|
I would do the same as Jesse said by setting 'display: none' using javascript to set the css style property: document.layer.style.display = none; Adeola. Arijit Das wrote: > 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 |