Container queries in CSS? #12890
vaughn-taylor
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Could you elaborate more on what you mean please? The sample code you provided is invalid CSS. For container queries in CSS, consider reading the documentation on MDN. For container queries in Tailwind, you can use the |
Beta Was this translation helpful? Give feedback.
3 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.
-
Perhaps this is already possible, but I'd like to be able to use a container query within CSS. For example, when an H2 element originates in a Redactor field from the CMS, I need to style that element.
Of course, I can add a class to the parent container, and key off of that:
.cms-container h2 { @apply text-2xl lg:text-4xl }
But, is there a way to do this:
Or am I just making things more complicated?
Beta Was this translation helpful? Give feedback.
All reactions