Answer the question
In order to leave comments, you need to log in
How to hide text horizontally in header?
Let's say we have this code:
<div style="width:200px">
<h3>Очень-очень длинный текст, такой длинный, что длинный</h3>
</div>
Answer the question
In order to leave comments, you need to log in
htmlbook.ru/css/text-overflow
for example:
h3 {
text-overflow: ellipsis;
}
h3 {
white-space: nowrap; /* Запрещаем перенос строк */
overflow: hidden; /* Обрезаем все, что не помещается в область */
text-overflow: ellipsis; /* Добавляем многоточие */
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question