Post #1756593
2026-04-12 16:10 UTC
@ppk It would be the same complexity as what you are doing for `--contentmd` since it only changes when that variable changes.
Another alternative is to make the p element container-type: inline-size and you have max-width: 100cqw (but the float behavior will be slightly different as they will wrap as a block)
Replies (2)
-
@ppk@front-end.social 2026-04-12 16:22
@css I didn't create those variables, that's the problem. I need to rewrite the style sheet from the ground up. I'll try containers. I didn't realise it influences floats.
-
@ppk@front-end.social 2026-04-12 16:52
@css Yes, container-type works. But why?