I have the following HTML:
<div id="container"><div id="textOnLeft">{{someDynamicText}}</div><div id="btnOnRight"><button></button></div></div>
You're not going to get an ellipsis unless you set a certain width limit on textOnLeft
. The rest is the magic of flexbox
.
#container{
display: flex;
flex-direction: row;
}
<div id="container">
<div id="textOnLeft">{{someDynamicText}}</div>
<div id="btnOnRight">
<button></button>
</div>
</div>