Fit content

Description

The dimensions of an inline element is dictated by its content; sometimes, when larger than the ones of the container they live in, these dimensions can break the bounderies of their parent container.

  • u-fit - Binds an inline element dimensions to the content area it fits in, making it resize alonside its parent container.

Usage

Usage example

Before:

After: