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 Repository
- Live Site URL: Github Pages
- HTML5
- CSS
- Mobile-first workflow
I learned about how the CSS display properties work and how they interact with other elements. Another thing I learned is about media queries for mobile design. It is incredible how we can create responsive designs by using this CSS property.
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: row;
}
.price-container {
display: flex;
align-items: center;
}I will be studying and practicing CSS media queries in order to improve my mobile design skills. Also, I will be reading the documentation of HTML, CSS and JavaScript.
- w3schools - This helped me to understand more about CSS display properties and media queries. I'd recommend it to anyone still learning.
- Frontend Mentor - Alan Delgado
- LinkedIn - Alan Delgado
