Design comparison
SolutionDesign
Community feedback
- @RioCantrePosted almost 3 years ago
Hello there! Good job in this challenge. Viewing the solution, I think you should consider the following as wellโฆ
- Instead of
div
, alternatively wrap the whole content with semantic tags, for HTML structures, refer it with this one Semantics - Adjust the margin in the
.card
rule set withmargin: 7rem auto;
and padding intopadding: 1.5rem;
- Remove
margin-top: 10px;
and set the width into 100% inimg
rule set - Remove
width: 80%;
in.innercontent p, h3
rule set and addfont-size: 22px;
inh3
- Wrap this line
<div class="card">
withmain
tag
Above all, Well done! Keep it going!
Marked as helpful0 - Instead of
- @denieldenPosted almost 3 years ago
Hi Sidddharthamishra, I took some time to look at your solution and you did a great job!
Also I have some tips for improving your code:
- add
main
tag and wrap the card for Accessibility - To make it look as close to the design as possible remove
margin-top
fromimg
element and setwidth: 100%;
- remove all
margin
fromcard
class and setpadding: 1rem;
- try to use flexbox to the body for center the card. Read here -> best flex guide
- after add
min-heigth: 100vh
to body because Flexbox aligns to the size of the parent container
Overall you did well :)
Hope this help and happy coding!
Marked as helpful0 - add
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