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.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Sass - For styles
I learned that I can use media queries inside a class
.container {
display: grid;
grid-template-columns: auto;
grid-template-rows: repeat(3, 1fr);
justify-items: center;
margin-inline: auto;
max-width: 60rem;
@media (min-width: 65em) {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto;
}
}
- LinkedIn - Rafael Takano
- Frontend Mentor - @rafaeltakano