Submitted over 1 year ago
Product Preview Card Component HTML CSS3 - Mobile First Approach
@amalhanaja
Design comparison
SolutionDesign
Solution retrospective
My process
- Slicing UI into HTML Structure
- Card (<main>)
- Image (<figure>)
- <img>
- Content (<section>)
- Overline (<h2>)
- Title (<h1>)
- Description (<p>)
- Price Section (<section>)
- Final Price (<h3>)
- Initial Price (<span>)
- Button (<button>)
- Icon (<img>)
- Text ()
- Define Styleguide as variable in CSS (color, font, typography)
- Styling using CSS
Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first approach
What I learned
- REM and EM: use rem for font-size and em for others
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord