I am showing text with some elipsis. With my current css the elipsis shows by breaking the word.
I need the elipsis to be shown after a word completes for proper readability.
Below is my css
.myContainer {
text-overflow: ellipsis;
max-width: 250px;
overflow: hidden;
white-space: nowrap;
padding-bottom: 15px;
}
<div class="myContainer">
Testing the dataset in path oregon location should done
</div>
I do not want to change the width of the container. The word location is not shown.
Elipsis should be shown after the location word(complete)
To clip at the transition between characters you can specify text-overflow as an empty string, if that is supported in your target browsers: text-overflow: ''; . This keyword value will display an ellipsis ( '…' , U+2026 HORIZONTAL ELLIPSIS ) to represent clipped text.
As of 2019, you can't do that with pure CSS. This is for two reasons:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With