dev-resources.site
for different kinds of informations.
Truncating Text with Text-Overflow
Published at
1/15/2025
Categories
css
html
webdev
frontend
Author
SnippFlow
When building websites we often find ourselves in situations where text within an html element goes beyond the available space. To keep things looking nice and readable we can use the css text-overflow property.
See the following Codepen for a demo:
Full article: Truncating Text with Text-Overflow
CSS Snippets
Articles
12 articles in total
Truncating Text with Text-Overflow
currently reading
Using the currentColor property to change SVG color
read article
Author Bio Box CSS in WordPress
read article
Reading Progress Bar
read article
Animated Gradient Background
read article
Gallery with varied image sizes using aspect-ratio and object-fit
read article
Back to Top button with smooth scroll
read article
Tooltips with Positioning (Top, Bottom, Left, Right)
read article
Center elements with flexbox
read article
Unordered and Ordered Lists with Auto-Increment Using Pseudoclasses
read article
Custom Mouse Cursor Using External Image
read article
WooCommerce Info Boxes under Add to Cart
read article
Featured ones: