Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Layering child elements to front Re: Layering child elements to front

#77175
Jazcash
Member
"cramdesign" wrote:
You can’t move a paren element above a child… So, what you want can’t be done. Why does one have to be a child of the other?

Oh ok, well, I guess I’ll try and use some funny work around. Basically I’m using the parent div for the content of my site which would use a diagonal transparent background, and I’m using the child div for the solid image background that would be applied behind the content element. I want the content background to be in front of the solid background, but want the solid background to be inside the content element for the positioning.

In this simple example, I’d want blockB to be inside blockA because of the positioning, but want blockA to be in front of blockB.

I can achieve the effect I want in my actual site using multiple images in one statement, however, IE doesn’t support those so I’m not going to use that.