Hyphenate character
The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.
Overview
The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 106 | 106 | 98 | 17 | 106 | 17 | |
auto | 6 | 79 | 98 | 5.1 | 18 | 5 |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (6)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (79)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (5.1)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (18)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (5)
Syntax
CSS
.text {
hyphens: auto;
hyphenate-character: '-';
}
.japanese {
hyphenate-character: '=';
} Live demo
Use cases
Using Hyphenate character
The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.
Cautions
- May not be supported in older browsers.
Accessibility
- Make sure visual changes are conveyed appropriately to assistive technology.
Related links
Powered by web-features