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
Request path contains unescaped characters
Not Found

Submitted

Product Preview Card Component

@ramirebel

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


Hi! This is my first time coding something on my own. I have some questions regrading the html structure of the page and the styling. I would really appreciate it if you took some minutes of your time to look at my code and answer the questions. What do you guys think of the html structure that I used? Did I use too many sections? a container then comes the card then comes the text column and the image column and then the elements themselves. And what about the styling I used to center the card? I set the width and height of the container to 1OO% of the viewport's height and width. I added some margin on the right and side of the card and I set its height to a fixed value. I tried using the margin property to center it vertically as well but it looked weird on taller phones. The margin was so small that it led to the card expanding vertically as the screen got taller. There was too much white space left unused! I also used the max width and min width properties on some text elements. Is that a good practice? ChatGPT said that it was okay. Thank you in advance for the help.

Community feedback

@syarief02

Posted

hi. i think you did very good and clean! it look exactly the same with the designs to me.

1

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