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.
Note: Delete this note and update the table of contents based on what sections you keep.
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: https://github.com/adi-develops/product-card
- Live Site URL: https://adi-develops.github.io/product-card/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
.perfume {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
height: 270px;
object-fit: cover;
}
- How To Scale and Crop Images with CSS object-fit - This helped me to crop the image properly for the the mobile view.
- Frontend Mentor - @adi-develops
- Github - @adi-develops
- Instagram - @aditya_agar1311