I try to change the color of the text whenever the text is truncated. But there is no success yet.
In the example below, the first div (with marker 1) should have a different color.
Any suggestion / recommendation is welcome.
.user-comment{
width:200px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/>
<div class="user-comment text-truncate">1. This is a test comment. Please do not use in production.</div>
<div class="user-comment text-truncate">2. This is not a QA.</div>
<div class="user-comment text-truncate">3. No comment found.</div>
<div class="user-comment text-truncate">4. Please ignote.</div>
Run code
source
share