Loading tutorials
& means inside a nested rule and how the browser uses it to build the final selector.3 min read&. You will learn when the & is optional, when it is required, and what the browser does with a nested selector that has no &.2 min read>), next-sibling (+), and subsequent-sibling (~) combinators in flat CSS. It also assumes you know the & nesting selector from earlier chapters.3 min read& nesting selector from the previous chapters.3 min read& nesting selector in a compound position such as &.is-open. Here you will put & at the end of a nested selector to style an element based on where it sits in the page.3 min read@supports rule, and how a style rule's selector decides which elements it styles. You should also know the & nesting selector from earlier chapters.2 min readh1, h2 { }), what & means in a nested rule, and the basics of specificity.2 min read& and relaxed nesting work from the earlier chapters.3 min read&, know how specificity and source order decide the cascade, and have used @media. It covers what happens when you write a plain declaration after a nested rule inside the same parent.3 min read&, know how specificity works, and have seen Sass or SCSS. Many Sass habits carry over to native CSS nesting. A few do not, and they fail in ways that are easy to miss.2 min read&, including the relaxed form without a leading &. It also assumes you know how @media nests inside a style rule. The goal is to decide when native nesting is safe to ship and what to do when it isn't.3 min read& selector works, how specificity is calculated, and how conditional at-rules nest inside style rules. It covers how to decide how much to nest.3 min read