Design comparison
Solution retrospective
Should I have used media queries for this one? I thought I would need to but then I previewed it in the Chrome dev console changing the width to 375px and it seemed in line with the mobile-design image. When adding a media query I wasn't sure what to change within it.
Any feedback about anything weird I'm doing is more than welcome!
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello ๐. Congratulation on successfully completing your first challenge ๐ ! !
I have some recommendations regarding your code that I believe will be of great interest to you.
- In this challenge it is not necessary to use media query, however using DevTools you should review your solution in a screen of 320px width, this width is the minimum necessary to avoid distorting a website.
- The
width: 100vw
property in thebody
tag is not necessary. This will create a horizontal scrollbar on some devices.
- Use
min-height: 100vh
instead ofheight: 100vh
. Theheight
property can cause your component to be cut off on small screens, such as a mobile phone in landscape mode.
- You should use a CSS reset. A CSS reset is a set of CSS rules that are applied to a webpage in order to remove the default styling of different browsers.
I hope you find it useful! ๐
Happy coding!
Marked as helpful2@mateorinlandPosted almost 2 years ago@MelvinAguilar That was very useful. Thanks a lot!
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