+ 1
What can display property in CSS do?
6 Réponses
+ 24
* {
display:none;
}
see for yourself... ~_~
+ 11
always fun to follow @ValentineHacker post.
its a good joke.
+ 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;
}
+ 2
It has values like block and none. If value is block, the element is displayed on web page. If none, element is hidden.
+ 1
You can use display property with div and on button click you can make that div appear using JavaScript
0
it can show and hide elements