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
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
Comments are closed.
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 unlikedisplay: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