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