+ 2

Can anyone explain me the difference between visibility:hidden; and display:none; ?

I am new in CSS Fundamental and still I'm a student studying in schools . I wanted to know about CSS Fundamental as it will help me in my future courses.

26th Feb 2017, 1:45 PM
Nakul
Nakul - avatar
5 Réponses
+ 3
visibility:hidden just hides the object without setting the space free, so everything stays at the same place. display:none removes it from the view, so other objects may be placed where the object was before.
26th Feb 2017, 2:16 PM
Benjamin Koch
Benjamin Koch - avatar
+ 2
'visibility: hidden;' is equivalent to 'opacity: 0;', so you can use css animations/transitions on this property, while display none isn't animatable...
26th Feb 2017, 5:02 PM
visph
visph - avatar
+ 1
thank you for your answer
1st Mar 2017, 3:54 PM
Nakul
Nakul - avatar
0
thank you very much
26th Feb 2017, 2:17 PM
Nakul
Nakul - avatar
0
👍👍
14th Mar 2017, 12:20 PM
Ibrahim Allababidi
Ibrahim Allababidi - avatar