Thanks for checking out this front-end coding challenge.
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 👉 Product-Card
- Live Site URL 👉 Product-Card
- Semantic HTML5 markup
- CSS custom properties
- CSS Grid
- Mobile-first workflow
Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.
To see how you can add code snippets, see below:
<picture>
<source media="(max-width:500px)" srcset="images/image-product-mobile.jpg" />
<img src="images/image-product-desktop.jpg" alt="Image" />
</picture>
.card__price--inactive {
font-size: 1.2rem;
margin-left: 3rem;
text-decoration: line-through;
}
If you want more help with writing markdown, we'd recommend checking out The Markdown Guide to learn more.
- Github - [Sahaspuria](https://www.your-site.com
- Frontend Mentor - @Sahaspuria