How can I change the end of a HTML text and replace it with two dots , if resolution is for mobile or tablet size? And without changing the size of the buttons (all buttons same size). Thanks i.e. Stackoverflow --> Stack..
.flex-buttons {
display: flex;
flex-wrap: nowrap;
}
.flex-buttons > div {
background-color: #f1f1f1;
width: 100%;
margin: 10px;
text-align: center;
line-height: 75px;
font-size: 30px;
}
<div class="flex-buttons">
<div>Stackoverflow12345</div>
<div>Stackoverflow</div>
<div>Stackoverflow</div>
<div>Stackoverflow</div>
<div>Stackoverflow</div>
<div>Stackoverflow</div>
<div>Stackoverflow</div>
</div>