[thelist] basic DHTML - collapsing DIVs

Mark Howells mark at mountain.ch
Thu Feb 21 08:42:01 CST 2002


> i have written code that shows and hides the contents of each div, but i
> would like each div to collapse as well, so that the div below it is moved
> up.

Use the CSS display property...

display:none
display:block

There's a fuller list of acceptable values for this property at
<http://www.w3schools.com/css/pr_class_display.asp>.

Regards
Mark Howells
<http://www.mark.ac/evl>




More information about the thelist mailing list