@VCarames
Posted
Hey there! 👋 Here are some suggestions to help improve your code:
Regarding your questions,
-
There is not a "perfect" to build any challenge. There is only the "modern" way. So Flex and CSS Grid is the way to go. But ideally CSS Grid; since it is the more advance version of Flex. I wouldn't use "margin auto"; use one of the above.
-
For
font-size
and media-queries **absolutely. Everything else, for now, can be px. -
You will rarely need to se definite sizes. I have yet to do one for any of these challenges. For the cards, you can give them a
min-height
andmax-width
to match the FEM design. (Always usemin-height
)
Here is how I did my challenge:
https://www.frontendmentor.io/solutions/four-card-layout-mobile-first-css-grid-E06SgjxBJG
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🍂🦃
Marked as helpful