CSS Property:

text-overflow

Result:

Example of the CSS text-overflow property.

CSS Code:

#myDiv {
                
width:100px;
background-color:pink;
padding:10px;
white-space: nowrap;
overflow:hidden;
}
Click the property values above to see the result
W3Docs.com-Play it
Do you find this helpful?