The text-overflow Property
The following two divs contains a text that will not fit in the box.
text-overflow: clip (default):
Hello world!
text-overflow: ellipsis:
Hello world!
text-overflow: "----" (user defined string):
Hello world!
Note: The text-overflow: "string" only works in
Firefox.