Try `visibility: hidden;` instead of `display: none;`