This is a solution to the Product preview card 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 depending on their device's screen size
- See hover and focus states for interactive elements
- Solution URL: product-preview-component
- Flexbox
How to use media queries.
And also weird fact, that wrapping <img>
in <picture>
gives you some wrong height of <picture>
container, unless you add display: block
CSS property to <img>
tag. SO discussion for details