If you have an element with some dynamic text, or need to adjust for responsive purposes, with this CSS you can set the max string size and add '...' after it
<div>
<p> With the created classes, the text inside the buttons cannot exceed the width. If the string inside the buttons is bigger than the button widths, it will automatically cut the text.</p>
<button class="btn_1">This is a very very long text</button>
<button class="btn_2">This is a very very long text</button>
</div>