@correlucas
Posted
๐พHello Dairon Canel, congratulations for your solution!
Your component is really tiny in comparison with the design files. To fix this behavior you need to avoid using width
in the inner content and add max-width: 350px
(this is the container size).
Doing that you'll make sure that the container has its proper size, to have more control you can use box-sizing: border-box
and work the elements inside just giving paddings and not width
.
Doin'g that you sell that the component will get closer to the design file.
Hope it helps and happy coding!
Marked as helpful