CSS Text Overflow
The text-overflow
property in CSS controls how overflowed content within an element is indicated to users when it's too large to fit within its box.
Basic Usage of the text-overflow
Property
The text-overflow
property has a few possible values:
text-overflow: clip;
: Clips the text when it overflows the container, hiding the excess content.text-overflow: ellipsis;
: Appends an ellipsis ("...") to the end of the text to show there is more content than visible.text-overflow: string;
: Displays a custom string at the end of the content to indicate overflow.