Design comparison
Solution retrospective
Is there a specific way that css selectors or properties should be ordered?
Community feedback
- @DevDan21Posted over 1 year ago
I think in some cases they do matter however I'd put more importance on making sure that you're selectors and properties are well organized. It makes it easier for you to look it up when you need to make a correction or change a property as well as for others that you might be collaborating with.
This is the way in which I work and strive to get better at.
Hope this helps!
1@ExpertoMontaneroPosted over 1 year ago@DevDan21 You are right but there a common thinking that you should organize you css properties in groups like: positioning, coloring, animating e.t.c or you can place them in alphabetical order. I am personally bigger fan of the first option.
Hope I helped. :>
2@DevDan21Posted over 1 year ago@ExpertoMontanero thanks for the tip. I’ll give it a try in future projects. It might be something that will better serve me!
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