Home Plugins fit to width
Fit To Width – CSS-only stretchy text logo

Fit To Width – CSS-only stretchy text

by Kevin Batdorf on WordPress.org

Automatically adjusts the text to fit the width of its container. No JavaScript.

(0)
An example of the text next to a cool dog

An example of the text next to a cool dog

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.

Active installations0+
Weekly downloads
25
Version0.1.0
Last updated12/1/2025
WordPress version6.7
Tested up to6.8.2
PHP version7.4
Tags
blockcreativeresponsive textstretchtypography