Fit To Width

Automatically adjusts the text to fit the width of its container. CSS only.

Author:Kevin Batdorf (profile at wordpress.org)
WordPress version required:6.7
WordPress version tested:6.8.5
Plugin version:0.1.0
Added to WordPress repository:25-08-2025
Last updated:01-12-2025
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:396
Active installs:20+
plugin download
Click to start download

A simple, lightweight block for displaying each line of text at full width, no matter the length of the text. No JavaScript.

Star the project on GitHub: https://github.com/kevinbatdorf/fit-to-width

Note: if you are installing it for the first time from the Block Inserter, WordPress has a bug where it doesn’t load block styles into the iFrame, so you will need to refresh.


Screenshots
FAQ
ChangeLog