Is it possible to add ellipsis (...) at the end when the character limit is exceeded?
I currently have code that keeps characters on the same line, but I would like it to be displayed in a maximum of two columns and place the excess content at the end.
This implementation is done using Bootstrap.
Check out the code on JSFiddle
.teste {
max-width: 30ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
<div class="card">
<h6 class=" teste">Ração Premier Cães Adultos Pequeno Porte Frango & Salmão 2,5 kg</h6>
</div>