display none but keep space css code example Example: display none but keep space div { visibility: hidden; /* visibility: visible */ }