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

Elvis Reinis Zeltītis
Elvis Reinis Zeltītis
1,925 Points

Is this possible? ( Dont know how to explain )

I have seen someone on youtube do this, cant remember who, but I just want to know if this is working or not?

.nav {
    ul {
        li {

        }
    }
}

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey Elvis,

I don't do much work with CSS, but nesting like that can't be done in plain CSS. It can, however, be done using a CSS Pre-processor like Sass. So, maybe what you saw was Sass being written.

:) :dizzy:

Elvis Reinis Zeltītis
Elvis Reinis Zeltītis
1,925 Points

Thanks for your reply, Ill look into whats Sass, because seems like a good way to write css :)

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

It can be.

Treehouse does offer a few Sass courses (You can search the library).

If you're very familiar with CSS, the Sass Basics Course is a good start for Sass writing. This is an intermediate course, so strong knowledge of CSS is recommended. Give it a look, but also keep in mind that this course is a bit dated, so there may be changes to current Sass processing.

:)

Elvis Reinis Zeltītis
Elvis Reinis Zeltītis
1,925 Points

Jason Anders Couldnt find better myself! 100% taking the course when I'll have time! Thanks alot! :)