This is a solution to the Testimonials grid section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I have learned how to muniplate the layout according to the device view.
/* ---------- Media Query ------------- */
@media only screen and (max-width: 992px) {
.testimonials {
grid-template-columns: repeat(3, 1fr);
grid-template-areas: "moderateViolet moderateViolet darkGrayishBlue"
"white-a darkBlackishBlue darkBlackishBlue"
"white-b white-b white-b";
}
}
@media only screen and (max-width: 576px) {
.testimonials {
grid-template-columns: repeat(1, 1fr);
grid-template-areas: "moderateViolet"
"darkGrayishBlue"
"white-a"
"darkBlackishBlue"
"white-b";
}
}
- Github - hassanidris
- Frontend Mentor - @hassanidris