Volleynerd Knowledge Base

Tuesday, July 30, 2002


Weird DHTML Stuff

Dealing with visibility style and dynamically showing/hiding blocks is quirky. Here are some thoughts:

To toggle visibility, you must explicitly set the visibility attribute for the given element. Giving that element a class name that has a stylesheet attribute for visibility is not enough. You can either set the visibility with an inline style attribute for the element, or programatically with javascript when the page loads. If you only rely on the stylesheet, the visibility attribute will be null at first inspection.




Comments: Post a Comment

Home