Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Page created using flex-box and media queries

@Stack-Mm

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Wrap Gabrielle Essence Eau De Parfum in <h1> , <h1>Gabrielle Essence Eau De Parfum</h1> to fix the accessibility issue.

Always begin the heading of the html with <h1> tag because the <h1> is needed to make the content accessible, wrap the sub-heading of <h1> in <h2> tag, wrap the sub-heading of <h2> in <h3> this continues until <h6>, never skip a level of a heading.

Give the alt attribute in the img a value. The value of the alt attribute is the description of the image. For decorative images like icons, there is no need to give it an alt value, for more on alt attribute Click here.

To center .card on the page using flexbox, replace the height in .principla-container with min-height: 100vh.

There is no need to give .container a max-width and restyle it in the media query.

For a responsive content, give .card a fixed max-width value and there is no need for a height value and overflow-hidden the padding value for .card__contenido will replace the height of .card and will prevent the content from overflowing.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

0

@Stack-Mm

Posted

@Hassiai Thanks for taking the time to see my code :D, i will correct it

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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