I tried the following code:
#my-div{
background-color: lightblue;
display: inline-block;
width: 200px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
<html>
<body>
<div id="my-div">The quick brown fox jumps over the lazy dog</div>
</body>
</html>
As you notice, the 3 dots replaces the last part of the sentence in the div because of the overflow. How can I reverse that behavior? Is it possible to replace the first part of the sentence with 3 dots (i.e. hide the overflow from the beginning NOT the end)?