Make you subs not in div tags but in a table. It will hide them. But not sub div tags. I messed with this once, and didn't want to waste time so I used <div><table></table></div>
Shawn Regan -----Original Message----- From: Bruce, Rodney S HQISEC/SIGNAL [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:08 PM To: CF-Talk Subject: RE: <DIV> question but doesn't If I just hide the main the subs are still visible :( function hide(){ document.all.main1.style.visibility= 'hidden'; document.all.main2.style.visibility= 'visible'; } Do I need to add something in the <div>? -----Original Message----- From: Cravens, Billy [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:48 PM To: CF-Talk Subject: RE: <DIV> question Should work - nested elements should inherit the properties of the parent. --- Billy Cravens -----Original Message----- From: Bruce, Rodney S HQISEC/SIGNAL [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 2:17 PM To: CF-Talk Subject: OT: <DIV> question Hello all Was wondering if it was possible for <div>s to be subs to each other. Like if the main div is hidden the subs will be as well without having to hide each one. example: <DIV name="main1"> <DIV name="sub1main1"></div> <DIV name="sub2main1"></div> </div> <Div name="main2"> <DIV name="sub1main2"></div> <DIV name="sub2main2"></div> </div> currently I can hide all three: function hide(){ document.all.main1.style.visibility= 'hidden'; document.all.sub1main1.style.visibility= 'hidden'; document.all.sub2main1.style.visibility= 'hidden'; document.all.main2.style.visibility= 'visible'; document.all.sub1main2.style.visibility= 'visible'; document.all.sub2main2.style.visibility= 'visible'; } but I was hoping it might be possible to hide the subs just by hiding the main. Thanks for any help Rodney ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists