@correlucas
Posted
πΎHello Cristian Garbarino, congratulations for your new solution!
Here's some tips to improve your solution:
To make the container responsive replace the width
with max-width
note that width
makes your container behave like a block and max-width
allow it to contract. Also remove the height
thats not necessary because the container height grows with the elements and its paddings.
.container {
/* background: var(--light-gray); */
max-width: 1000px;
display: flex;
justify-content: center;
align-items: center;
/* box-shadow: 0px 15px 50px -30px rgb(0 0 0 / 50%); */
}
To have your solution closer to the design challenge (check the slider and see the difference) you can remove the background from the container and add it to the body, see the changes below:
.container {
/* background: var(--light-gray); */
/* box-shadow: 0px 15px 50px -30px rgb(0 0 0 / 50%); */
}
body {
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
/* background: #f0f0f0; */
background: var(--light-gray);
}
π I hope this helps you and happy coding!
Marked as helpful
@cristiang3011
Posted
@correlucas Thank you for your suggestions. hope you have a great day.