# FitText **Repository Path**: mirrors_cloudera/FitText ## Basic Information - **Project Name**: FitText - **Description**: Truncates lines of text to fit within a container - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README FitText ======= ![FitText](http://github.com/rpflorence/FitText/raw/master/Assets/logo.png) Truncates the text nodes of elements to fit inside a container How to use ---------- ### Example: #### HTML: #HTML #### CSS: #CSS ul { list-style: none; width: 50%; } li { white-space: nowrap; } #### JavaScript #JS var myFitText = new FitText('container','li > span',{ offset: 20, fitClass: 'fitted' }); View the [MooDoc](http://moodocs.net/rpflo/mootools-rpflo/FitText) for usage and examples.