I have managed to make a DIV tag invisible in JavaScript by setting the display to none and the visibility to hidden. It can be achieved with this class also:
.i
Layout-wise, display:none takes it completely out of the rendering tree and into this netherworld limbo. It has no well-defined dimensions or position anymore.
If you need some placeholder for scroll position, I'd suggest using a placeholder element. Some zero-height DIV or maybe even an would work.