why visibility, visibility hidden none need????????????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why visibility, visibility hidden none need?????????????

5th Aug 2020, 6:55 PM
Darkboy Shohan
Darkboy Shohan - avatar
3 Answers
+ 1
If you want your element dissapear and it'space collapsed use display:none; But if you want that the place remains vacant use visibility:hidden;
5th Aug 2020, 7:45 PM
Divya Mohan
Divya Mohan - avatar
+ 1
If you use display none, you remove element from dom. If use visibility, the element placed in dom but not visible
5th Aug 2020, 8:18 PM
george
george - avatar
+ 1
In case when you have a HUGE data in tag, display is more convient way to consteuct web page
5th Aug 2020, 8:19 PM
george
george - avatar