keyword
None — CSS reference
The keyword none has property-dependent meanings. For display it suppresses box generation for the element and descendants; it does not delete DOM nodes. It differs from visibility:hidden, which normally preserves layout space. Other properties such as background-image use none to indicate absence of that effect.
Formal Syntax & Structure
css syntaxcss
display: none;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>none</title><style>body{margin:8px;font:16px/1.5 sans-serif}*{box-sizing:border-box}#a{display:none}#b{width:100px;height:20px}</style><body><div id="a"><button>Hidden</button></div><div id="b">Visible</div></body></html>