Свойство

hyphens

Baseline: широко доступно

Разрешает браузеру переносить слова по правилам языка или только в местах мягкого переноса.

Пример

Узкая колонка и hyphens: auto с lang="ru" — длинные слова получают переносы:

Автопереносы по-русски
HTML
<p class="narrow" lang="ru">автоматизированный высокопроизводительный процессор</p>
CSS
.narrow {
  max-inline-size: 8rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid silver;
  background: white;
  color: black;
  hyphens: auto;
}

Результат

Без корректного языка словарь может не сработать.

Синтаксис

Формальный синтаксис
hyphens: none | manual | auto;
Начальное значение
manual
Применяется к
тексту
Наследуется
да
Анимируется
дискретно
Вычисляемое значение
как указано

Значения

none
Переносов нет: слово либо целиком на строке, либо вылезает (пока не сработают другие свойства вроде overflow-wrap).
manual
Перенос только там, где в тексте есть мягкий перенос (&shy; / U+00AD) или явный дефис. Значение по умолчанию.
auto
Браузер может переносить по словарю языка элемента. Мягкие переносы тоже учитываются.

Как понять

Перенос — не то же самое, что принудительный разрыв длинного токена (overflow-wrap, word-break). hyphens опирается на язык и словарь: режет по слогам, а не «где влезло».

Для русского обязателен lang="ru" на элементе или предке. В узких карточках и колонках auto заметно ровняет край; в интерфейсных кнопках и навигации обычно оставляют manual или none.

Примеры

Только мягкий перенос

manual и soft hyphen
HTML
<p class="box">высоко&shy;производительный</p>
CSS
.box {
  max-inline-size: 7rem;
  margin: 0;
  padding: 0.5rem;
  background: #f7f7f7;
  color: black;
  hyphens: manual;
}

Результат

Запрет переносов в UI

none в подписи
HTML
<p class="label">Настройки профиля</p>
CSS
.label {
  margin: 0;
  padding: 0.5rem;
  background: white;
  color: black;
  hyphens: none;
}

Результат

Подсказки

  • hyphens: auto наследуется — часто достаточно задать на body или статье.
  • Для URL и кода лучше overflow-wrap / word-break, а не словарь переносов.
  • Качество словарей различается по браузерам; проверяйте узкие меры на реальном тексте.

Поддержка браузерами

Значения и возможности: hyphens
Возможность Chrome Edge Firefox Safari Chrome Android Safari iOS Samsung Internet Opera
hyphens 55 1 79 2 43 3 17 4 55 5 17 6 6.0 7 42 8
auto 88 88 6 5.1 55 4.2 6.0 74
Hyphenation dictionary for Afrikaans (af, af-*) 112 112 8 нет 112 нет 23.0 98
Hyphenation dictionary for Albanian (sq, sq-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for Ahmaric (am, am-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for Armenian (hy, hy-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Assamese (as, as-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Basque (be, be-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Belarusian (be, be-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Bengali (bn, bn-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Bosnian, Serbian, and Serbo-Croatian (sh, sh-*, sr, sr-*, bs, bs-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Bulgarian (bg, bg-*) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for Catalan (ca, ca-*) нет нет 8 5.1 нет 5 нет нет
Hyphenation dictionary for Croatian (hr, hr-*) 87 87 8 9.1 87 9.3 14.0 73
Hyphenation dictionary for Mongolian (Cyrillic) (mn-cyrl, mn-cyrl-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Czech (cs, cs-*) 112 112 130 9.1 112 9.3 23.0 98
Hyphenation dictionary for Danish (da, da-*) 87 87 8 5.1 87 5 14.0 73
Hyphenation dictionary for Dutch (nl, nl-*) 112 112 8 5.1 112 5 23.0 98
Hyphenation dictionary for English (en, en-*) 55 12 6 5.1 55 5 6.0 44
Hyphenation dictionary for Esperanto (eo, eo-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Estonian (et, et-*) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for Ethiopic script (mul-ethi, mul-ethi-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for Ethiopic script (und-ethi, und-ethi-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Finnish (fi, fi-*) нет нет 8 9.1 нет 9.3 нет нет
Hyphenation dictionary for French (fr, fr-*) 87 87 8 5.1 87 5 14.0 73
Hyphenation dictionary for Galician (gl, gl-*) 112 112 9 нет 112 нет 23.0 98
Hyphenation dictionary for Georgian (ka, ka-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for German, Reformed Orthography of 1996 (de, de-1996, de-DE, de-AT, de-*) 87 87 8 5.1 87 5 14.0 73
Hyphenation dictionary for German, Swiss Orthography (de-CH, de-CH-*) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for German, Traditional Orthography of 1901 (de-1901, de-AT-1901, de-DE-1901) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for Gujarati (gu, gu-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Hindi (hi, hi-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Hungarian (hu, hu-*) 87 87 9 9.1 87 9.3 14.0 73
Hyphenation dictionary for Icelandic (is, is-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Interlingua (ia, ia-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Irish (ga, ga-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Italian (it, it-*) 112 112 9 5.1 112 5 23.0 98
Hyphenation dictionary for Kannada (kn, kn-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Kurmanji (kmr, kmr-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Latin (la, la-*) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for Latvian (lv, lv-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for Lithuanian (lt, lt-*) 112 112 8 нет 112 нет 23.0 98
Hyphenation dictionary for Malayalam (ml, ml-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Marathi (mr, mr-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Modern Greek (el, el-*) 112 112 нет нет 112 нет 23.0 98
Hyphenation dictionary for Mongolian (mn, mn-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Norwegian (Nynorsk) (nn, nn-*) 87 87 8 нет 87 5 14.0 73
Hyphenation dictionary for Norwegian (Bokmål) (no, no-*, nb, nb-*) 87 87 8 5.1 87 5 14.0 73
Hyphenation dictionary for Old Slavonic (cu, cu-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Oriya (or, or-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Polish (pl, pl-*) нет нет 31 9.1 нет 9.3 нет нет
Hyphenation dictionary for Portuguese (pt, pt-*) 87 87 8 9.1 87 9.3 14.0 73
Hyphenation dictionary for Punjabi/Panjabi (pa, pa-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Russian (ru, ru-*) 112 112 8 5.1 112 5 23.0 98
Hyphenation dictionary for Slovak (sk, sk-*) 112 112 130 нет 112 нет 23.0 98
Hyphenation dictionary for Slovenian (sl, sl-*) 87 87 8 нет 87 нет 14.0 73
Hyphenation dictionary for Spanish (es, es-*) 87 87 8 5.1 87 5 14.0 73
Hyphenation dictionary for Swedish (sv, sv-*) 112 112 8 5.1 112 5 23.0 98
Hyphenation dictionary for Tamil (ta, ta-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Telugu (te, te-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Turkish (tr, tr-*) нет нет 9 5.1 нет 5 нет нет
Hyphenation dictionary for Turkmen (tk, tk-*) 87 87 нет нет 87 нет 14.0 73
Hyphenation dictionary for Ukrainian (uk, uk-*) 112 112 9 9.1 112 9.3 23.0 98
Hyphenation dictionary for Upper Sorbian (hsb, hsb-*) нет нет 8 нет нет нет нет нет
Hyphenation dictionary for Welsh (cy, cy-*) 87 87 8 нет 87 нет 14.0 73
manual 88 88 6 5.1 55 4.2 6.0 74
none 88 88 6 5.1 55 4.2 6.0 74

Примечания

  1. Chrome: С префиксом -webkit- — с версии 13.
  2. Edge: С префиксом -webkit- — с версии 79.
  3. Firefox: С префиксом -moz- — с версии 6.
  4. Safari: С префиксом -webkit- — с версии 5.1.
  5. Chrome Android: С префиксом -webkit- — с версии 18.
  6. Safari iOS: С префиксом -webkit- — с версии 4.2.
  7. Samsung Internet: С префиксом -webkit- — с версии 1.0.
  8. Opera: С префиксом -webkit- — с версии 15.

Яндекс Браузер работает на Chromium и поддерживает то же, что Chrome той же версии. Данные: MDN browser-compat-data 8.1.2, обновлено 17 сентября 2026 г..

Спецификация

См. также

Поиск

Название свойства, селектора или функции — можно по-английски и без двоеточий: hover, gap, clamp.

Меню