Configure HTML/JavaScript

Friday, February 15, 2013

What is the difference between visibility:hidden and display:none


visibility:hidden and display:none are not synonims.

display:none means that the the tag in question will not appear on the page at all (although you can still interact with it through the dom). There will be no space allocated for it between the other tags. 


Visibility:hidden means that unlike display:none, the tag is not visible, but space is allocated for it on the page. so for example

1 comment:

  1. Good Information shared with people who are looking for this, Thanks for providing Angularjs Online course

    ReplyDelete