Replies: 1 comment
-
|
Seems to be different in Tailwind Play but otherwise works as I expect: .container {
width: 100%;
@media (width >= 20rem) {
max-width: 20rem;
}
@media (width >= 40rem) {
max-width: 40rem;
}
@media (width >= 50rem) {
max-width: 50rem;
}
@media (width >= 96rem) {
max-width: 96rem;
}
}
Regardless, you may not wish to affect @utility container {
/* Reset `max-width`s */
max-width: none;
@media (width >= 20rem) {
max-width: 20rem;
}
@media (width >= 50rem) {
max-width: 50rem;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Seems there's nothing in the docs for this in v4, only results for "container" are trying to sell Tailwind UI and stuff about unrelated container queries.
So I've customized all my breakpoints, but .container for some reason does not listen to those.
Is this correct, or broken?
I tried this just to test it out:
which results in this still:
I need these to be for example 20rem and 50rem. (made up numbers I'll figure out exacts once I get it actually functioning).
Beta Was this translation helpful? Give feedback.
All reactions