Incognitus
Explore posts from serversKPCKevin Powell - Community
•Created by Incognitus on 6/23/2024 in #front-end
Is it possible to use container queries on container itself?
Hey guys, recently been trying to get back to container queries research, and found that styles don't apply on container itself. I think I saw Kevin do that in one of his videos, and now it doesn't work. Or maybe I'm trippin.
Anyway example below didn't work. Google suggests using wrapper, but it doesn't go well when there is a list of such containers. I assume that I can use
display: contents
on wrapper, but overall wrapping doesn't seem like a good solution. Maybe someone figured out how to do this properly, or knows if its planned in specs. Any answer is appreciated!
6 replies
KPCKevin Powell - Community
•Created by Incognitus on 4/25/2023 in #front-end
How to make <li> bullet just stay inside container, not move text ?
10 replies