Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan authored Jul 28, 2023
1 parent 7cf8dbf commit f8b067d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ To stop an element from acting as a container, use the `@container-normal` class

### With a prefix

If you have configured Tailwind to use a prefix, you'll also need to prefix `@container`:
If you have configured Tailwind to use a prefix, make sure to prefix both the `@container` class and any classes where you are using a container query modifier:

```html
<div class="tw-@container/main">
<div class="tw-@container">
<!-- ... -->
<div class="@lg/main:underline">
<!-- This text will be underlined when the "main" container is larger than `32rem` -->
<div class="@lg:tw-underline">
<!-- ... -->
</div>
</div>
```
Expand Down

0 comments on commit f8b067d

Please sign in to comment.