This is a solution to the Sunnyside agency landing page 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
- See hover states for all interactive elements on the page
- Solution URL: Code URL
- Live Site URL: Live Site URL
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
Stacking Using Display Grid
Learned this from WesBos' CSSGrid Course
- For this you need to set
grid-template-columns
andgrid-template-rows
to1
- Then set the style for the tags you need by
grid-column: 1 / -1
andgrid-row: 1 / -1
A look at how I used it in the styles
.gc-1-1fr {
display: grid;
grid-template-columns: 1;
grid-template-rows: 1;
}
.graphic-design__content,
.graphic-design__image {
grid-column: 1 / -1;
grid-row: 1 / -1;
}