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
Evclid
Один div внутри другого.
Как сделать чтоб div2 не вылазил за пределы div1, а обрезался?
Т.е. от красного div должен остаться только маленький квадратик, который остался на div1.
<div id="div1" style="background-color:Yellow; width:100px; height:100px;">
<div id="div2" style="position:relative; left:-40px; top:-40px; width:50px; height:50px; background-color:Red;">
</div>
</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.