Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Liliana Leyva
Liliana Leyva
3,711 Points

What order I am supossed to put the selectors in CSS?

I am practicing trying to do a website, I get confused about the order of the selectors.

2 Answers

I don't have much idea about that but what I do is use basic selectors first and then add complex ones like media queries. or some complex styles. You can change the colors fonts and all other easy ones first and then selectors with pseudo classes. However, it's your wish. However, I have heard that you have to write the styles according to the importance of that style, I find a useful article which can help you so check it out. Maybe This article can help you!

Liliana Leyva
Liliana Leyva
3,711 Points

Thank you, I am going to check it out.

Yeah! Maybe it can help you out.

Check out CSS Best Practices course on treehouse.