https://github.com/protoss78/textfit-div
A web component that uses STRML/textFit to fit the text size to the available space
https://github.com/protoss78/textfit-div
fit strml text text-fit textfit
Last synced: 7 months ago
JSON representation
A web component that uses STRML/textFit to fit the text size to the available space
- Host: GitHub
- URL: https://github.com/protoss78/textfit-div
- Owner: Protoss78
- Created: 2015-08-07T22:25:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T19:04:24.000Z (over 8 years ago)
- Last Synced: 2025-02-24T18:05:25.471Z (8 months ago)
- Topics: fit, strml, text, text-fit, textfit
- Language: HTML
- Homepage: https://www.webcomponents.org/element/Protoss78/textfit-div
- Size: 11.3 MB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.webcomponents.org/element/Protoss78/textfit-div)
# textfit-div
A web component that uses STRML/textFit to fit the text size to the available space. When the parent is resized, the text size is adjusted accordingly.
Important: Make sure that textfit-div is put into a container that has an actual size.Example:
```html
```