Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Any way to force inheritance?
07-10-2008, 09:32 PM #1
- Join Date
- Jul 2008
- Thanked 0 Times in 0 Posts
Any way to force inheritance?
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.