The docs for sass say that you can use nesting. However, the docs only provide examples for scss.

I try this:

#mydiv
      position: relative
      padding: 3px
        #nested
             float: right

And I get this error:

(Line 9: Illegal nesting: Only properties may be nested beneath properties.)

So - it is possible to do nesting with sass?

2 answers

2
points
This was chosen as the best answer

Align #nested along the same margin as padding... It's likely just a parsing error.

#mydiv
  position: relative
  padding: 3px
  #nested
    float:right

Indenting again is like it says, for properties, like font for example:

#mydiv
  position: relative
  padding: 3px
  #nested
    float:right
    font:
        family: Helvetica
        weight: 900
        variant: small-caps
Answered over 7 years ago by Darcy Bross
0
points

Hey @bobdobbs can you mark this as answered :)

Answered over 7 years ago by Darcy Bross
  • You'll find a lot of people will ask a question and then just leave. Such is life. Ktash over 7 years ago