@correlucas
Posted
👾Hello Bryan, congratulations for your new solution!
Your solution is already perfect with flexbox
I don't really think you need to change it but if you want. You can use GRID
if you prefer as an alternative for flexbox
even if flex is the best choice for this challenge, see the modifications I did to you code bellow:
.main-container {
display: grid;
flex-direction: column;
/* position: relative; */
align-items: center;
/* justify-content: space-around; */
/* height: 497px; */
padding: 15px;
max-width: 320px;
background-color: white;
border-radius: 20px;
}
REMEMBER, if you want some component or container responsive ever use max-width
or min-width
if you use width
the container will not grow because width
is a fixed a value and the other two options are flexible.
👾@correlucas rating for this solution: ⭐⭐⭐⭐⭐
👋 I hope this helps you and happy coding!
Marked as helpful
@MamieNorris
Posted
@correlucas Thank you a lot Lucas for yor feedback ! I never use max/min-width but now I will.