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

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.