Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Introduction to HTML and CSS (2016) Make It Beautiful With CSS Select and Style Multiple Elements by Class

Jamie Belden
Jamie Belden
5,145 Points

Is there a specific order that elements are listed in CSS or is it pretty much a free-for-all?

It can be difficult to find the class or element that you are looking for, so I was wondering if there was a method or technique that I don't know about? I'm assuming it's always going to be laid out depending on however the developer or coder wanted to lay it out?

1 Answer

You could break your single CSS file into sections using comments. Some developers divide their CSS into several different files such as layout.css, font.css, modules.css. This could have some performance benefits in terms of load times for your website too.