Fit To Width – CSS-only stretchy text
·
Automatically adjusts the text to fit the width of its container. No JavaScript.
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.
This plugin is available for download for your site.