Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
Replace<div class="stats-card-component">with the main tag and <div class="attribution"> with the footer tag to fix the accessibility issues. for more on semantic html visit https://web.dev/learn/html/semantic-html/
The image is not visible add "." to the beginning of src in the image tag
<img src="./images/image-header-mobile.jpg" alt="Happy people at office">
instead of <img src="/images/image-header-mobile.jpg" alt="Happy people at office">There is no need to give the body a max-width value
Give .stats-card-component a fixed max-width value in the mobile design and in the desktop design.
in the mobile design .stats-card-component{ max-width: 400px;} in the desktop design: .stats-card-component{ max-width: 1100px;}
give .stats-card-component__img and .stats-card-component__content t a width of 50% in the desktop design.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
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