This is a solution to the Single price grid component 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 component depending on their device's screen size
- See a hover state on desktop for the Sign Up call-to-action
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Grid
- Flexbox
- Media Query
Learnt how to use grid to create layouts Learnt how to span grid columns and rows to fit the layout of the design Learnt how to use more than one media query to target different sizes of the screen
To make a blur underneath the box-shadow you have to give a spread value equal but negative to the blur value
@media (max-width: 768px) {
.container {
display: grid;
grid-template-columns: 1fr;
width: 80%;
}
.first {
grid-column: 1/1;
}
}
@media (max-width: 1300px) {
.container {
display: grid;
grid-template-columns: 1fr;
width: 50%;
}
.first {
grid-column: 1/2;
}
}
box-shadow: 0 20px 20px -20px #333;
```
## Author
- Frontend Mentor - [@apah-dev](https://www.frontendmentor.io/profile/apah-dev)
- Twitter - [@benson_apah](https://www.twitter.com/benson_apah)