0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>Another interesting text property is text-overflow. It allows you to determine how the text will look if it does not fit in the container. It takes different values, but clip and ellipsis are universal and work in all modern browsers.</p>
1
<p>Another interesting text property is text-overflow. It allows you to determine how the text will look if it does not fit in the container. It takes different values, but clip and ellipsis are universal and work in all modern browsers.</p>
2
<p>The clip value is set by default, and it will simply cut text to fit the size of the container, whereas ellipsis will cut it and add an ellipsis to the end of the line.</p>
2
<p>The clip value is set by default, and it will simply cut text to fit the size of the container, whereas ellipsis will cut it and add an ellipsis to the end of the line.</p>
3
<p>Unfortunately, this property has limitations that make it less useful: it can only be used for single lines of text, and it also may only be applied to blocks. You can also assign the overflow property value, which takes the attributes auto, scroll, or hidden.</p>
3
<p>Unfortunately, this property has limitations that make it less useful: it can only be used for single lines of text, and it also may only be applied to blocks. You can also assign the overflow property value, which takes the attributes auto, scroll, or hidden.</p>