# Style containment

contain: style: counters and quotes inside stay inside.

## What is **style containment**?

**Style containment** (`contain: style`) keeps counters and quotes inside an element from affecting the rest of the page.

```css
.comment-thread { contain: style; }
```

Level: Master · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/master)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/style-containment
