# @container

Writes a container query.

## What does `@container` do?

`@container` writes a container query: styles that apply when the container meets the condition.

```css
@container (max-width: 350px) {
  .card .details { display: none; }
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/container
