Mobile responsive solution using CSS and flex-box
Design comparison
Solution retrospective
so I did a single page that was mobile responsive but started with the desktop version. I realize that when resizing the page before we get to mobile pixel, the width becomes unusual.
is it supposed to be so or is there supposed to be a style for laptop and tablet widths?
Community feedback
- @MelvinAguilarPosted about 1 year 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.
- Avoid using percentage or viewport units for component width, as it may lead to issues on mobile and large screens. Instead, use a max-width of
320px
or20rem
to ensure a consistent maximum width, and remove any percentage-basedwidth
properties.
- Use semantic elements such as
<main>
and<footer>
to improve accessibility and organization of your page.
-
It's recommended that you always use the font provided by the challenge's style guide.To import a font, follow the steps below:
- Go to the font's page on Google Fonts: https://fonts.google.com/specimen/Outfit.
- A sidebar will appear with a code snippet that you can use to import the font.
- Copy this code snippet and paste it into the <head> section of your HTML document.
- Now you can use the "Outfit" font in your CSS by specifying
font-family: 'Outfit', sans-serif;
.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful3@MikkybeardlessPosted about 1 year ago@MelvinAguilar thank you so much.. I actually know that something is wrong from the way my page responded to tablet and laptop view but didn't know what exactly to use to solve it
Thanks to you, I know now
1 - Avoid using percentage or viewport units for component width, as it may lead to issues on mobile and large screens. Instead, use a max-width of
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