@correlucas
Posted
πΎHello Flor, congratulations for your first solution and π welcome to the Frontend Mentor Coding Community!
You've used FLEX
to create this component this is fine, since is working. In my opinion a better approach is by using GRID
.
For example to build this component with 2 columns all you need to do is create a main block to hold all the content (you can use <main>
to wrap), set its width
as max-width: 900px
(its the container size) and display: grid
/ grid-template-column: repeat(2, 1fr)
(this means that your component will have two columns with 50% of the container width each thats 450px).
π I hope this helps you and happy coding!
Marked as helpful