Set style.display to inline-block, not visible.