Design comparison
SolutionDesign
Community feedback
- @shravankumartalabhaktulaPosted over 2 years ago
Hi Ankit Mishra,
- It seems like you have not followed the design guidelines from the images. Your output is not looking same as the expected one.
- The code is not responsive as well.
Please re-try the challenge again by following mobile-first design approach and make the output as much close as possible to the expected output. Thanks.
Marked as helpful0@ankit951githubPosted over 2 years ago@shravankumartalabhaktula Thanks for your feed back.
0 - @denieldenPosted over 2 years ago
Hi Ankit, great work on this challenge! 😉
Here are a few tips for improve your code:
- separe the div
attribution
from divwraper
- add
main
tag and wrap the card for improve the Accessibility - to make it look as close to the design as possible add
width: 20rem
towraper
class - centering a
div
withabsolute
positioning is now deprecated, it uses modern css likeflexbox or grid
- use flexbox to the body to center the card. Read here -> best flex guide
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container - instead of using
px or %
use relative units of measurement likerem
-> read here
Overall you did well 😁 Hope this help!
0 - separe the div
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