View Full Version : Any way to force inheritance?

All Beagle
07-10-2008, 09:32 PM
Alright guys, I have a tricky drop-down menu situation here and hopefully there is a way around this. I'm working with a content management system that creates base div tags for setting up menus. Unfortunately I need more menus than the system creates so when I try to create a seperate div tag, it places it outside the div tag I want it in, making positioning a nightmare. What I want to know is if I have a .header div class and I want to place a .menu div class to be placed inside that div, can I use the stylesheet alone to have .menu inherit it's properties? So although in the source code it .menu may be at the bottom of the page, it is still acting is if it's like <div class="header"><div class="menu"></div></div>.

I'm assuming I might be able to do this through some parent-child action, but I'm kind of new to CSS so I'm not even sure it's possible.