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: GitHub
- Live Site URL: Product Preview Card Component
- Semantic HTML5 markup
- CSS custom properties
I learned how to make the design responsive using Flexbox.
css:
@media screen and (max-width: 700px) {
.flex-container {
display: flex;
flex-direction: column;
width: 343px;
}
}- HTML & CSS: Design and Build Web Sites - Book by Jon Duckett - This helped me address minor issues in my code. And I will continue using it.
- W3Schools - This is where I learned how to make the web page responsive.
- Frontend Mentor - @ebenezerraph
- X - @ebenezerraph