--- title: 'Nested Selectors' --- Sometimes it's useful to nest selectors to target elements inside the current class or React component. An example with an element selector is shown below. ```jsx // @live import { css } from '@emotion/react' const paragraph = css` color: turquoise; a { border-bottom: 1px solid currentColor; cursor: pointer; } ` render(

Some text. A link with a bottom border.

) ``` You can use `&` to select the current class nested in another element: ```jsx // @live import { css } from '@emotion/react' const paragraph = css` color: turquoise; header & { color: green; } ` render(

This is green since it's inside a header

This is turquoise since it's not inside a header.

) ```