Design comparison
Community feedback
- @fastcheetahPosted 3 months ago
Hello, I noticed you wrote your css within your html file but I would like to tell you that it's better to write your css and link it to your html using the "
<link rel = "stylesheet" href = "index.css"> " Because it becomes possible to maintain a cohesive style, minimizing duplication and simplifying global styling update.It also helps avoid extraneous information and makes HTML files tidy and small . It will be really helpful when working with big projects so you won't get confused.
Also , I want to tell you that it's not recommended to use to use standard values like pixels when setting font-size in webpages but rem because it reference the size of the root element. To further explain, in different people's browser they can set the default font sizes and using pixels will show no effect and mess up the layout of your webpage. To calculate from pixels(px) to rem you divide your pixel value by 16 to get the rem . Note you can also use rem for margins. Nice work on your project๐ฅ๐ฅ๐ฅ๐ฅ๐๐๐
If you found this helpful mark this comment as helpful if you learnt something
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