display:none -CSS property to hide elements

      No Comments on display:none -CSS property to hide elements

display:none-display:none property can be used to hide any specific element. This property seems to be same as visibility:hidden but, unlike visibility:hidden, display:none does not occupy space in a web page.

this is visible element

This is element with display:none

Note: the element set to display:none does not take up space on a web page.

display:none- Try it yourself

<h1>this is visible element</h1>
<h1 style="display:none;">This is element with display:none</h1></p>

Leave a Reply

Your email address will not be published. Required fields are marked *