Yes!  I just checked the DTD to be sure, but a DIV can contain any other
block or inline element.

On 6/10/02 12:16 PM, "Bruce, Rodney S HQISEC/SIGNAL"
<[EMAIL PROTECTED]> wrote:

> 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to