JSFiddle - React, Tailwind, and code Playground
2 divs with ellipisis
HTML
<div class="supercont">
<div class="container">
<div class="not_important1">
employer employer employer employer employer employer employer employer employer employer employer employer employer
</div>
<div class="not_important2">
url url url url url url url url url url url url url url url url url url url url url url url url url
</div>
</div>
</div>
CSS
.supercont {
width: 550px;
}
.container {
width: 40%;
}
.container>div:first-child{
display: inline-block;
width: 60%;
white-space: nowrap;
background: aqua;
text-overflow: ellipsis;
overflow: hidden;
}
.container > div:last-child {
display: inline-block;
white-space: nowrap;
background: yellow;
text-overflow: ellipsis;
overflow: hidden;
width: 50px;
}
.container > div:first-child:hover{
white-space:normal;
}
.container > div:last-child:hover{
white-space:normal;
}