Show sub menu on body class
Permalink
Hi all,
How can i show a hidden div on when the body class had a for example "about".
I use a Attribute to give the body a class.
This is the code i have now:
HTML
CSS
thanks in advance!
EDIT: i have multiple body classes
How can i show a hidden div on when the body class had a for example "about".
I use a Attribute to give the body a class.
This is the code i have now:
HTML
<body id="<?php echo $c->getCollectionAttributeValue('bodyclass')?>">
<div id="submenu">
<span>
<img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
<img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
<img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
</span>
</div><!-- end submenu -->CSS
#submenu span {width:900px; height:auto; float:left; display:none; color:#000; margin: 0 0 0 20px; padding:5px} #about #submenu span {display:block;}
thanks in advance!
EDIT: i have multiple body classes