Hello,
I have a div name "container" which contains another div called "sidebar_left", which has another div called "red_rectangle", something like this:
I want that the background from the container to be on top of the background of the red_rectangle. I tried z-index, but does not work or I might be using it wrong:Code:<div id="container"> <div id="sidebar_left"> <div class="red_rectangle"> </div> </div> </div>
Any advice?Code:#container { z-index: 999; } #sidebar_left { z-index: 1; } #sidebar_left .red_rectangle { z-index: 1; }
Thanks.
If you want the background from container to be on top of the background of the red rectangle while the red rectangle is still on top you should be able to set it like this:
See if something like that works.Code:#container { z-index:1; } #sidebar_left{ z-index: 0; } #sidebar_left .red_rectangle{ z-index: 2; }
-CDG10620
Software Developer
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks