hi I have 2 div in page div1 and div2 like below image:
I want Div2 be front of Div1 like below image:
how I can do it?
Best Regards
Neda
Hi Nedash,
Please refer below
HTML
<div id="Center"> <div id="Behind" style="width: 50px;"> Div 1 </div> <div id="TopOne" style="width: 150px;"> Div 2 </div> </div> <div> <style type="text/css"> #Behind { background-color: orange; position: absolute; z-index: -1; padding: 50px; } #TopOne { position: absolute; top: 90px; left: -30px; background-color: GrayText; padding: 30px; } #Center { width: 50px; height: 50px; position: absolute; top: 0; bottom: 25%; left: 0; right: 0; margin: auto; } </style> </div>
Screenshot
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.