@vanzasetia
Posted
Hi there! 👋
I recommend using flexbox since the layout for the cards is not a two-dimensional layout. Flexbox is great for a one-dimensional layout.
I suggest wrapping the card elements with main
landmark. After that, make the main
element as the flex container for all the card elements.
For the body
element, you can use the grid to center the layout.
Also, I would recommend writing the CSS with the mobile-first approach. It often leads to shorter and better performance code. Also, mobile users won't be required to process all of the desktop styles.
That's it! Hope this helps.
Marked as helpful
@Ranecodes
Posted
@vanzasetia Thanks!
@vanzasetia
Posted
@Ranecodes No problem! 👍