@snehamoybag
Posted
Hi @justEfere, 🙋♂️
Congratulations on completing this challenge! 🎉 You did a great job on the layout, it looks great! 👏
You can use percentage units to give relative size to the children 😄
<div class="container">
<div class="container-item"></div>
</div>
.container {
width: 100px;
}
.container-item {
width: 50%;
}
This will make the .container-item
to be 50% of its parent. So if you change the width of .container
, the .container-item
's width will also change.
Marked as helpful