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
- Live Site URL: https://nlabiris.github.io/product-preview-card-component/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
Better usage of Flexbox.
Need to work more on absolute length units (i.e. px) and use relative ones more as well as media queries to manage responsiveness better.
- Split Div Into 2 Columns Using CSS - I think the best solution since it shows a modern way to stack divs horizontally or vertically by utilizing the Flexbox properties
- Why doesn't my image width inherit from parent div width - Had some issues with the left side image. At the end, I didn't use it since I changed the
img
element todiv
in order to handle the image source at the CSS level
- Frontend Mentor - @nlabiris