Post #1756591
2026-04-12 15:36 UTC
@ppk Your floater element has a fixed width, you have a fixed margin-left for the p element and they have a max-width so you can do the following calculation:
max-width: min(680px,100cqw - 332px - 380px)
and you set container-type: inline-size to HTML to get the 100cqw
and then you adjust when the layout change with the media queries
Replies (1)
-
@ppk@front-end.social 2026-04-12 16:03
@css Yes, that's a possibility, but it's too complicated for me, with all the different media queries and breakpoints. I'm currently working around the main style sheet, not with it. But thanks anyway.