Design comparison
Solution retrospective
Nothing really hard (for me) except with the responsive where i have waste a lot of time. My render is not perfect under 1000 px.
I still enjoyed this challenge.
Community feedback
- @denieldenPosted over 2 years ago
Hey Peally, congratulations on completing the challenge! You did a great job π
Let me give you some little tips for optimizing your code:
- remove all
margin
frommain
tag - 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 - use
h2
for the titles of cards - use
button
for the learn more buttons and not a styledp
- instead of using
px
use relative units of measurement likerem
-> read here
Hope this help! Happy coding π
Marked as helpful0 - remove all
- @vanzasetiaPosted over 2 years ago
Hi, Peally! π
Great work on this challenge! Your solution looks pretty good! π
I recommend adding
max-width
tomain
element to prevent the cards from becoming too large on one column layout.Other recommendations from me.
- For the "Learn More" buttons, I recommend using interactive elements such as link or
button
element. Remember, always use an interactive element if the element has interactivity. - In this case, all the car icons are decorative images so I recommend leaving the
alt
empty. This way, screen reader users won't have to listen to the unrelated or unnecessary content.
That's it! I hope this information is useful! π
Marked as helpful0 - For the "Learn More" buttons, I recommend using interactive elements such as link or
- @Kamasah-DicksonPosted over 2 years ago
Your solution looks great bit on smaller devices you have to
-
reduce the margin left and right for your each container to have enough width, they look squashed together in small devices.
-
Remove any positioning property on the footer and just add text align center.
Besides hope that was helpful. π Good job, keep coding friendππ
Marked as helpful0 -
- @PeallyzPosted over 2 years ago
Thanks you all for your tips I used most of all to correct my code.
Have a nice day !
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