Design comparison
Solution retrospective
I would like to know which part of my code I could improve on, including best practices and which other ways I could have done this. Please criticize every single part of my code and guide me in the right direction.
Community feedback
- @AdrianoEscarabotePosted about 4 hours ago
Hello Rodel Advincula, Welcome to Frontend Mentor!!
How are you? I was really pleased with your project, but I’d like to offer some advice that might help:
Consider using
rem
for font size .If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices.if you want to continue coding with
px
, you can download a very useful extension in vscode, it convertspx
torem
!link -> px to rem
The rest is spot on.
Hope it’s helpful to you. 👍
Marked as helpful0 - @hitmorecodePosted 1 day ago
Nice well done looks good. Just a few pointers
- It's best practice to add some kind of CSS reset, here is an example of a simple CSS reset
* { margin: 0; padding: 0; box-sizing: border-box; }
With this you don't have to add
margin: 0;
orpadding: 0;
anymore.- By default the body already has 100% width, so you don't need to add this.
- As for the height of the body, it's best practice to user
min-height
instead ofheight
.
I hope you find this helpful. Keep it up 👌👍
Marked as helpful0 - @Barcode77Posted 1 day ago
your html code was way simplified than mine. i created another branch and made some changes to my original code. check it out!also, is nesting advisable?
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