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

How often do you use different selectors in CSS?

When i use selectors i usually only use.. type, universal, class, id, and pseudo selectors. I was just wondering if you guys use other selectors (and if you do how often) when you write CSS.

Thanks!

1 Answer

Scott Paterson
Scott Paterson
26,869 Points

Yeh it can be a little bit over the top head sometimes trying to keep up, I was in a bad habit of using to much classes, so now I try and use best selector for the job and recently have been going over course videos again. Guess it can depend on how much content you have aswell there probably a balance between under using them and over thinking about using them.