visibility:hidden vs display:none

V

VK

visibility:hidden vs display:none

I guess I *feel* the difference (or maybe not) Could anyone put it in
words for me?
 
C

Christopher J. Hahn

VK said:
visibility:hidden vs display:none

I guess I *feel* the difference (or maybe not) Could anyone put it in
words for me?

Quick answer:
visibility: none; the element is still there, still the same size,
still covering things and taking up space, you just can't see it.

display: none; it's actually completely collapsed, taking up no space
and not covering anything.

Also, the way the attributes affect child elements differs. For more
detail, I recommend: comp.infosystems.www.authoring.stylesheet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top