The hyphens property controls whether hyphenation is allowed to create more soft wrap opportunities within a line of text.

  • Initial valuemanual
  • Applies toAll elements
  • InheritedYes
  • MediaVisual
  • Computed valueSpecified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: none | manual | auto 

hyphens: none;
hyphens: manual;
hyphens: auto;
  • noneWords are not hyphenated, even if characters inside the word explicitly define hyphenation opportunities.
  • manualWords are only hyphenated where there are characters inside the word that explicitly suggest hyphenation opportunities.
  • autoThe browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses to use.
.class {
   hyphens: auto; 

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.