parent child question
-
<div id="header" class="services"></div>
I have a services page with child pages in the services section and a product page with child pages in the product section etc. I want to display a different header image using css depending what section of the site the page is located in. So in the code above I want to be able to name the class ‘services’ if the page is ‘services’ or a child of ‘services’ and rename it ‘products’ if the page is ‘products’ or a child of ‘products’.
Is it possible to do that?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘parent child question’ is closed to new replies.