Product Preview Card Component Using HTML and CSS
Design comparison
Solution retrospective
Hello Everyone, This is my first project with frontend mentor. I would appreciate any feedback on improvement.
Community feedback
- @AdrianoEscarabotePosted about 2 years ago
Hi @Durgathev, how are you?
Welcome to the front-end mentor community. I really liked the result of your project, but I have some tips that I think you will like:
1- Document should have one main landmark, you could have put all the content inside the
main
tag click here2- Page should contain a level-one heading, you could have changed
p.heading
toh1
click hereI noticed that you used
position: absolute;
to center the content, always prioritize usingflex-box
orgrid
body { display: flex; align-items: center; flex-direction: column; justify-content: center; }
.main { /* position: absolute; */ /* top: 50%; */ /* left: 50%; */ /* transform: translate(-50%, -50%); */ }
Commented codes have been removed! Hope it helps... π
Marked as helpful1@DurgathevPosted about 2 years agoHey @AdrianoEscarabote, I'm doing good. thanks. Hope you are doing well.
Thanks for your valuable feedback. It's worthwhile and I'll practice it in future projects.
I'd love to hear you again! π
0@AdrianoEscarabotePosted about 2 years ago@Durgathev I'm glad you liked it! keep coding! π
1 - @correlucasPosted about 2 years ago
πΎHello DurgaDevi, congratulations for your new solution!
π Great start and great first solution! Youβve done really good work here putting everything together, Iβve some suggestions you can consider applying to your code:
1.Add the correct font for the heading:
.paragraph .heading { font-family: Fraunces; letter-spacing: 2px; font-size: 30px; font-weight: 700; color: var(--dark_blue); }
2.Replace the paragraph
p
you've used for theheading
and use<h1>
to wrap it.Every page needs a main heading, the<h1>
to show which is the most important heading. You need to increase the headings by one level, like h1, h2, h3 to show the titles hierarchy. Remember that you cannot have more than one h1 heading.βοΈ I hope this helps you and happy coding!
Marked as helpful0@DurgathevPosted about 2 years agoHello @correlucas, thanks for the valuable feedback. I'll correct it .
I'd glad to hear you again. :)
0
Please log in to post a comment
Log in with GitHubJoin 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