For some reason, the ellipsis at the end of the text does not appear, and the text itself is transferred to a new line. How to remove it?
<div class="block"> <img src="https://cdn0.iconfinder.com/data/icons/195-flat-flag-psd-icons/70/Russia.png"> <a href="#russia">Российская Федерация</a> </div> .block { width: 200px; } .block img { position: relative; display: inline-block; width: 24px; height: auto; margin-right: 10px; } .block a { position: relative; cursor: pointer; overflow: hidden; display: inline-block; white-space: nowrap; text-overflow: ellipsis; width: 85%; vertical-align: middle; color: #507299; text-decoration: none; }
.block { max-width: 200px; width: 100%; }.block { max-width: 200px; width: 100%; }and it works - HamSter