Elektrine lite

← Feed

@ppk@front-end.social

Post #1158419

2026-04-12 15:13 UTC

There is no CSS measurement for "the width of the content once the floats have influenced it", right? Ideally I need that width. p img { max- width: 100%-of-content-after-floats; }

Replies (2)

  • @ppk by "100% of content after floats" do you want the image to occupy the remaining available width after other elements float around it? If that's it, it'd look like a work for flex more than float (but I may be missing context)

    Open ##1756586

  • @css@front-end.social 2026-04-12 15:18

    @ppk we may find a "specific" workaround to the "specific" structure you are working on.

    Open ##1756589