BACK TO DIRECTORY

Fit To Width – CSS-only stretchy text

by Kevin Batdorf

0.0
(0 ratings)

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

An example of the text next to a cool dog

An example of the text next to a cool dog

Plugin Details

Active Installs
30
Total Downloads
836
Version
0.2.0
Requires WP
6.7
Requires PHP
7.4
Tested Up To
7.1
Added
2025-08-25
Last Updated
2026-08-15 11:03am GMT

Ratings

5
0
4
0
3
0
2
0
1
0