+ 1

What can display property in CSS do?

21st Mar 2017, 4:53 AM
Pradipta Roy
Pradipta Roy - avatar
6 Answers
+ 24
* { display:none; } see for yourself... ~_~
21st Mar 2017, 5:32 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
always fun to follow @ValentineHacker post. its a good joke.
21st Mar 2017, 6:42 AM
Agus Mei
Agus Mei - avatar
+ 9
display property is used to make visible or hide any html element. It can accept values inline, block and none. inline is used when we want something to display all in one line. block is used when we want content of our element to be display in a block. none to hide the element. But display only hide the element, the space it covers will still be there. To remove the space also, we use- visibility property. Set and try this- element { visibility: hidden; }
21st Mar 2017, 11:24 AM
Sachin Artani
Sachin Artani - avatar
+ 2
It has values like block and none. If value is block, the element is displayed on web page. If none, element is hidden.
21st Mar 2017, 5:50 AM
Satish Gawde
+ 1
You can use display property with div and on button click you can make that div appear using JavaScript
21st Mar 2017, 7:26 AM
Pranavkant Trivedi
0
it can show and hide elements
21st Mar 2017, 12:27 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar