@correlucas
Posted
๐พHello @chigyong, congratulations for your new solution!
๐ฏ Your solution its almost done and Iโve some tips to help you to improve it:
1.Align the pricing section vertically with align-items: center;
and justify-items: center;
.box .content .annual-plan {
display: grid;
grid-template-columns: repeat(3, 1fr);
background-color: hsl(225deg, 100%, 98%);
margin: 15px 0px 10px 0px;
padding: 10px 10px 10px 10px;
align-items: center;
justify-items: center;
}
2.Your component is perfect, but its not responsive yet. To fix this behavior all you need to do is replace the width
with max-width
. Note that the difference between these two properties is that width
is fixed, example, width: 340px
is an container that doesn't get bigger or smaller than 340px
but max-width: 320px
have the maximum of 340px
and can contract when the screen scales down and adjust its size.
โ๏ธ I hope this helps you and happy coding!
Marked as helpful