Plugin info

Total downloads: 220
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 12/1/2025 (30 days ago)
Added to WordPress: 8/25/2025 (0 years old)
Minimum WordPress version: 6.7
Tested up to WordPress version: 6.8.3
Minimum PHP version: 7.4

Maintenance & Compatibility

Maintenance score

Actively maintained • Last updated 30 days ago

68/100

Is Fit To Width – CSS-only stretchy text abandoned?

Likely maintained (last update 30 days ago).

Compatibility

Requires WordPress: 6.7
Tested up to: 6.8.3
Requires PHP: 7.4

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

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.

Installation

  1. Upload the plugin files to the /wp-content/plugins/fit-to-width directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

Frequently Asked Questions

What about browser support?

See here https://caniuse.com/mdn-css_at-rules_property

How did you do it?

For a detailed explanation of how this works, see https://kizu.dev/fit-to-width.

Is it accessible?

I guess that depends on your perspective and legal requirements. First thing I’ll say is that this technique outshines the alternatives, and those alternatives also suffer from the same caveat:

It won’t pass Success Criterion 1.4.4 Resize Text when the zoom is dependent on the viewport.

I’m by no means an expert on this, so if you’re interested in the topic, there’s a good discussion on this GitHub issue: Feature for making text always fit the width of its parent that I recommend reading.

There are arguments that if you maintain a width legible enough then zooming may not be an issue. My advice, however, is that you make sure that your text is able to zoom in up to 2em in size for all screen widths (press cmd/ctrl +/- to test).

Review feed

No reviews available

Screenshots

  1. An example of the text next to a cool dog

    An example of the text next to a cool dog

Changelog

0.1.0

  • Initial Release