JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<div class='row'>
    <div class='c1'>hello</div>
    <div class='c2'>bob</div>
</div>
<div class='row'>
    <div class='c1'>this is a very long test test bc a</div>
    <div class='c2'>bob</div>
</div>
<div class='row'>
    <div class='c1'>this is a very long test test test test test</div>
    <div class='c2'>bob</div>
</div>

CSS

.row .c1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 170px;
    max-width: 170px;
    z-index: 1;
    background-color: red;
    display:table-cell;
    padding: 0px 5px;
}
.row .c2 {
    position:absolute;
    top:0;
    right:-15px
    /* half of the width */
    ;
    background-color: green;
    display:table-cell;
    width:30px;
}
.row {
    display:table;
    width: 200px;
    position: relative;
}