Design comparison
Solution retrospective
Responsive Css
What challenges did you encounter, and how did you overcome them?A little on media queries
What specific areas of your project would you like help with?How can I write more efficient css. Should I use rem instead of pixels?
Community feedback
- @geomydasPosted 4 months ago
Here are some simple tips on when to use rem or any other units
rem: font-size, paddings, margins; px: border-radius, border, box-shadow (generally the small stuff); em: letter-spacing;
CSS Units Guide: https://www.youtube.com/watch?v=N5wpD9Ov_To;
Writing more efficient css
- Just use SASS
- Use native CSS Nesting
- Use CSS Variables
HTML Code Critique.
- Geez, too much divs. Use main, section and other semantic elements.
- <p> elements nested in .social should be changed into a <button> element
CSS Code Critique
-
Need a CSS Reset. (makes your code look the same no matter what browser). Use this one: https://www.joshwcomeau.com/css/custom-css-reset/;
-
This challenge doesn't even need a media query. No need for changing the width on mobile. Use padding on the parent element (body) and set both width and max-width on the card. The width should be in responsive units (% is best), and the max-width should be in fixed units (px)
Marked as helpful0
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