Design comparison
SolutionDesign
Solution retrospective
- Are my class names appropriate?
- I don't know how to organize CSS codes.
Community feedback
- @dbenny1Posted about 2 years ago
Awesome job.
You should try to reduce the use of divs. Use proper semantic HTML like section, article etc.
I advise you use divs for design purpose.
For my class names, I use camel case.
1 - @kostyafarberPosted about 2 years ago
Hey there! 👋
Really great solution. It looks pixel perfect! Your CSS is very structured and looks clean.
Just a couple of suggestions:
- Try adding your CSS document wide variables to the
:root
. It's best practise and looks a lot cleaner. - Make sure to remove any comments! The
index.html
has some commented out code. It will make it easier to read and more 'production ready'. - If you want follow a convention for naming your CSS look at the
BEM
convention. They provide an intuitive way to name your elements to make their meaning semantic. Check it out here.
Really great work though! 🚀
Happy coding.
If you found my comment helpful please mark it as helpful 🙂
0 - Try adding your CSS document wide variables to the
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