I want to truncate the text and the alignment of the elements must be kept. And to truncate text in span, display: inline-block
must be used. But using it breaks the UI.
Code Snippets
HTML
<a href="#">
<i class="fa fa-circle bordered"></i>
<span class="bordered inline">{{text}}</span>
<i class="fa fa-times bordered"></i>
</a>
CSS
.inline {
max-width: 137px !important;
text-overflow: ellipsis;
display: inline-block;
overflow: hidden;
white-space: nowrap;
}
Expected Output is to have the truncated text be aligned with the surrounding <i></i>
tags.