Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Is display none the right way to hide an element? Reply To: [Solved] Is display none the right way to hide an element?

#188638
Paulie_D
Member

The question is…why are you hiding it?

If you’re hiding it to show it later then display:none is a reasonable option.

Alternatively, you could hide it offscreen with a large positioning value.

Or add/remove it with JS/JQ

However, if you’re hiding it because it’s showing up on your page and you don’t want it there you need to think about how it’s getting there and fix that.