This is a solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
This was easier compare to the first few ones I did. I can't believe I just needed two lines of Grid CSS to make it responsive for 1024px and above width.
.column-container {
width: 920px;
height: 500px;
display: grid;
grid-template-columns: repeat(3, 1fr);
}
I want to do more challenges with Grid CSS in the future. I want to be really good at it so I can make layouts more responsive.