selector {
    text-overflow: clip | ellipsis
}
div {
    width: 200px;
    border: 2px solid red;

    /* Required properties to prevent wrapping 
       and display an ellipsis (...) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
<div>
    This example demonstrates how to prevent automatic line breaks,
    hide overflowing text, and display an ellipsis (...)
    when the text reaches the end of the content box.
</div>
Rendered Output
<div>
    This example demonstrates how to prevent automatic line breaks,
    hide overflowing text, and display an ellipsis (...)
    when the text reaches the end of the content box.
</div>
div {
    width: 200px;
    border: 2px solid red;
}
Rendered Output
div {
    width: 200px;
    border: 2px solid red;
    white-space: nowrap; /* Prevents automatic wrapping and forces overflow */
}
<div>
    This example demonstrates how to prevent automatic line breaks,
    hide overflowing text, and display an ellipsis (...)
    when the text reaches the end of the content box.
</div>
Rendered Output
div {
    width: 200px;
    border: 2px solid red;
    white-space: nowrap; /* Prevents automatic wrapping and forces overflow */
    overflow: hidden; /* Hides any text that overflows the container */
}
<div>
    This example demonstrates how to prevent automatic line breaks,
    hide overflowing text, and display an ellipsis (...)
    when the text reaches the end of the content box.
</div>
Rendered Output
div {
    width: 200px;
    border: 2px solid red;
    white-space: nowrap; /* Prevents automatic wrapping and forces overflow */
    overflow: hidden; /* Hides any text that overflows the container */
    text-overflow: ellipsis; /* Displays an ellipsis (...) for hidden content */
}
<div>
    This example demonstrates how to prevent automatic line breaks,
    hide overflowing text, and display an ellipsis (...)
    when the text reaches the end of the content box.
</div>
Rendered Output
/* Keyword values */
text-overflow: clip;
text-overflow: ellipsis;

/* Global values */
text-overflow: inherit;
text-overflow: initial;
text-overflow: revert;
text-overflow: revert-layer;
text-overflow: unset;