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

Product preview card component using CSS Flex

Olena Hladkovaβ€’ 10

@olenahladkova

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


It looks like I could do it more elegantly, but I tried to make a result as close to images as possible. I believe it would have been much easier with Figma files, but without them, it is also some challenges.

Community feedback

Tesla_Ambassadorβ€’ 2,980

@tesla-ambassador

Posted

Hey Olena! Congrats on completing this challenge. I think you nailed it so well and while it might have been a lot more easier with the figma files, sometimes we need to be able to work without them and you did so well πŸŽ‰ Here's a little pointers:

  • You might wanna apply the background color to the body instead of the main section so that you can avoid the white spaces that are surrounding your page.
  • In order to resolve some of your accessibility issues, you might wanna use landmarks in your html code, these help browsers easily navigate your code. So you might consider wrapping your divs in landmarks like <main> or <header> or <footer> you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.

Happy coding and keep up the great work! πŸ‘

1

Olena Hladkovaβ€’ 10

@olenahladkova

Posted

@tesla-ambassador thank you! In fact, I didn't apply the background color to the body to visually and logically separate that part from the main content, but now I realized there is many other options to do it, so yes, I need to think on that part. And I will work with accessibility issues for sure, thank you for advice!

1
Tesla_Ambassadorβ€’ 2,980

@tesla-ambassador

Posted

@olenahladkova You're welcome!

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