HTML Introduction to HTML and CSS 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

Terrance Reynolds
Terrance Reynolds
6,780 Points

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.