Есть например три блока,блок #three перекрывает блок #two хотя у блока #two значения z-index: 15; выше чем у #three.Объясните пожалуйста какое тут правило играет роль и почему так??
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
mr.Dassler
Есть например три блока,блок #three перекрывает блок #two хотя у блока #two значения z-index: 15; выше чем у #three.Объясните пожалуйста какое тут правило играет роль и почему так??
#one{
position: absolute;
left: 0px;
top: 20px;
z-index: 10;
width:110px;
height:80px;
background:orange;
}
#two{
position: absolute;
left: 50px;
top: 30px;
z-index: 15;
width:110px;
height:80px;
background:green;
}
#three{
position: absolute;
left: 100px;
top: 30px;
z-index: 12;
width:110px;
height:70px;
background:blue;
}
<div id="one"> one one one one
<div id="two">two two two two</div>
</div>
<div id="three">three three three</div>
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.