Design comparison
Solution retrospective
What is the best practice for organizing styles within a style sheet?
Community feedback
- @Victor-NyagudiPosted almost 2 years ago
Hi
Good attempt on this one.
Different people organize their CSS in different ways.
Some like to have all the text-related styling grouped together while others prefer to organize their styling in alphabetical order.
A lot of it depends on what works for you. In a team, there'll probably be a pattern to follow, so this also varies depending on whom you're working with.
I'd recommend using the BEM naming convention for your classes. It stands for Block Element Modifier, and I find it very helpful in organizing my classes.
Hope this helps.
All the best with your other solutions.
1
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