To show ellipsis (…) when text is cut off in a Webflow text element due to limited space, you need to apply specific CSS properties. Webflow’s Designer doesn’t natively include a UI for this, so you’ll need to use custom code or add classes with these styles in the Designer.
To enable ellipsis for single-line text truncation, you need to use the following CSS properties on the text element:
Since Webflow doesn't expose text-overflow
in its style panel, you'll need to add custom code.
You can include this custom CSS via either the Embed Code component in the Designer or by adding it in the Project settings > Custom Code > Head section:
Inside an HTML Embed, use inline tags:
<style> .ellipsis-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }</style>
ellipsis-text
).If you want to truncate after 2+ lines and show ellipsis, use:
.ellipsis-multiline { display: -webkit-box; -webkit-line-clamp: 2; /* change to number of lines */ -webkit-box-orient: vertical; overflow: hidden;}
Add this to the custom code area, and apply the class ellipsis-multiline
to your text element.
To show ellipsis (…) when text overflows in Webflow, use the overflow: hidden
, text-overflow: ellipsis
, and white-space: nowrap
properties via a custom CSS class. Assign that class to your text block, and ensure it has a constrained width. Use -webkit-line-clamp
for multi-line truncation if needed.