hyphens

The hyphens CSS property specifies how words should be hyphenated when text wraps across multiple lines. It can prevent hyphenation entirely, hyphenate at manually-specified points within the text, or let the browser automatically insert hyphens where appropriate.

Initial value manual
Applies to all elements

Syntax

  
hyphens: manual;
  

Values

Words are not broken at line breaks, even if characters inside the words suggest line break points. Lines will only wrap at whitespace.
Words are broken for line-wrapping only where characters inside the word suggest line break opportunities. See Suggesting line break opportunities below for details.
The browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses. However, suggested line break opportunities (see Suggesting line break opportunities below) will override automatic break point selection when present.
The "hard" hyphen character indicates a visible line break opportunity. Even if the line is not actually broken at that point, the hyphen is still rendered.
An invisible, "soft" hyphen. This character is not rendered visibly; instead, it marks a place where the browser should break the word if hyphenation is necessary. In HTML, use ­ to insert a soft hyphen.

Browser support

hyphenschrome55edge12firefox43ie10opera44safari5.1
afrikaanschromeedgefirefox8ieoperasafari
bosnianchromeedgefirefox8ieoperasafari
bulgarianchromeedgefirefox8ieoperasafari
catalanchromeedgefirefox8ieoperasafari5.1
croatianchromeedgefirefox8ieoperasafari9.1
czechchromeedgefirefoxieoperasafari9.1
danishchromeedgefirefox8ieoperasafari5.1
dutchchromeedgefirefox8ieoperasafari5.1
englishchrome55edge12firefox6ie10opera44safari5.1
esperantochromeedgefirefox8ieoperasafari
estonianchromeedgefirefox8ieoperasafari
finishchromeedgefirefox8ieoperasafari9.1
frenchchromeedgefirefox8ieoperasafari5.1
galicianchromeedgefirefox9ieoperasafari
german_reformed_orthographychromeedgefirefox8ieoperasafari5.1
german_swiss_orthographychromeedgefirefox8ieoperasafari
german_traditional_orthographychromeedgefirefox8ieoperasafari
hungarianchromeedgefirefox9ieoperasafari9.1
icelandicchromeedgefirefox8ieoperasafari
interlinguachromeedgefirefox8ieoperasafari
italianchromeedgefirefox9ieoperasafari5.1
kurmanjichromeedgefirefox8ieoperasafari
latinchromeedgefirefox8ieoperasafari
lithuanianchromeedgefirefox8ieoperasafari
mongolianchromeedgefirefox8ieoperasafari
norwegian_nnchromeedgefirefox8ieoperasafari
norwegian_nochromeedgefirefox8ieoperasafari5.1
polishchromeedgefirefox31ieoperasafari9.1
portuguesechromeedgefirefox8ieoperasafari9.1
portuguese_brazillianchromeedgefirefox8ieoperasafari
russianchromeedgefirefox8ieoperasafari5.1
slovenianchromeedgefirefox8ieoperasafari
spanishchromeedgefirefox8ieoperasafari5.1
swedishchromeedgefirefox8ieoperasafari5.1
turkishchromeedgefirefox9ieoperasafari5.1
ukrainianchromeedgefirefox9ieoperasafari9.1
upper_sorbianchromeedgefirefox8ieoperasafari
welshchromeedgefirefox8ieoperasafari

We use cookies to improve your experience. Learn more in our Privacy policy.

×