Is it possible to achieve the resizeable div without spacing from the right side base on the characters through pure CSS? When I change the text alignment to justify, the blank space gone but weird spacing come between the words. In the following image, I want to achieve something like the "output required" column. Please advice and thanks in advance!
CSS:
body{font-family: arial; font-size: 13px;}
.text-holder{
position: absolute;
right: 10px;
max-width: 200px;
border: 1px solid black;
text-align: left;
}
.one{
top: 10px;
}
.two{
top: 60px;
}
.three{
top: 110px;
}
<div class="text-holder one">Lorem ipsum dolor sit amet, consectetur</div>
<div class="text-holder two">Duis aute irure dolor in repd in voluptate velit</div>
<div class="text-holder three">Excepteur sint occaecat cupidatated non proident</div>