Staredit Network

Staredit Network -> Computers and Technical -> [CSS] Render parent's background above child's
Report, edit, etc...Posted by Pie_Sniper on 2006-10-21 at 21:00:15
If you have, for example, <div class="Parent"><div class="Child"></div></div>, and they have different background images, how do you get <div class="Parent">'s background to render above <div class="Child">'s?
Report, edit, etc...Posted by Centreri on 2006-10-21 at 21:04:10
I'm not sure it's possible. To get around that, make another <div> wherever you want with the 'Parent' class inside the 'Child' classed-<div>.
Report, edit, etc...Posted by Pie_Sniper on 2006-10-21 at 21:24:01
Well, that was just an example. If it's not possible, then I'm not sure what to do. The actual structure of my code is like this:

CODE
    <div class="Parent">
      <div class="Child1"></div>
      <div class="Child2">
        <div class="Child3"></div>
      </div>
    </div>

They all have different background images that work together to make something else. <div class="Parent">'s background image needs to be right in the center of it all, so I need its background above its children's.

P.S. This is my 100[sup]th[/sup] post. smile.gif
Report, edit, etc...Posted by Doodle77(MM) on 2006-10-21 at 21:41:09
Make it not a background...

ADDITION:
or z-order the parent over the children.
Next Page (1)