In .net programming what is the difference between visibility:hidden and display:none?

According to CSS rules visibility:hidden and display:none both result in the element not being visible. How are they different?

From James Bean from Rockville

One thought on “In .net programming what is the difference between visibility:hidden and display:none?

  1. Hello James

    There is a subtle difference between the two methods of hiding an element using css in .net Programming.

    display:none means that the object/element will not appear on the page at all. Also there will be no space allocated for it between the other elements.

    visibility:hidden means that unlike display:none, the element is not visible, but space is allocated for it on the page. The element is rendered, it just isn’t seen on the page.

    Will

Comments are closed.