Technogrette




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).




Share this page:


© 1995–2012 Art. Lebedev Studio