Design comparison
Solution retrospective
1.I found it hard to use the media query in the project. I need more learning on it. 2. How does one add the favicon image at the background of the body for the desktop design? I will really appreciate any feedback on those areas. thanks
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Franklin, Congratulations on completing this challenge!
Great solution and great start! By what I saw you’re on the right track. I’ve few suggestions to you that you can consider to add to your code:
1.Use
<main>
instead of<div>
to wrap the card container. This way you show that this is the main block of content and also replace the div with a semantic tag.2.Use units as
rem
orem
instead ofpx
to improve your performance by resizing fonts between different screens and devices. These units are better to make your website more accessible. REM does not just apply to font size, but to all sizes as well.3.Remove
width: 1440px
to make the proper alignment:body { display: flex; background-color: var(--color-light-gray); justify-content: center; align-items: center; height: 100vh; /* max-width: 1440px; */ }
Note that these sizes given in the
style-guide.md
in the case 1440px for desktop and 375px are only a reference value to say in which dimension the design were created, don't stick to these values because your solution should be fully responsive and fit any screen size.✌️ I hope this helps you and happy coding!
0 - @hyrongennikePosted about 2 years ago
Hi @frankbush-cloud,
Congrats on completing the challenge
remove the
max-width: 1440px
on the body rule. There is no need to use a media query in this challenge. For the .container div you can swap it with a main tag so it will be<main class="container">
You did good. Hope this is helpful.
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