HTML and CSS   XSLT   JavaScript   Images   Soft   Etc  
Vladimir Tokmakov

Element visibility 14 October 2005


Task:

Determine whether CSS property display is defined as none.

An HTML element can be hidden either through JavaScript or using CSS property display. It is difficult to interpret CSS logic by means of JavaScript, and there is no need to do this. It’s much easier to request the object’s offsetHeight (if 0 ≈, then the element is hidden).


Order a design...