Skip to content

Instantly share code, notes, and snippets.

@RickCogley
Last active November 14, 2024 04:02
Show Gist options
  • Save RickCogley/b3ad0a9903c42f723daf540ac4246d82 to your computer and use it in GitHub Desktop.
Save RickCogley/b3ad0a9903c42f723daf540ac4246d82 to your computer and use it in GitHub Desktop.
English Hyphenation
/* Language supports hyphenation ハイフン対応可能な言語 */
html[lang="en"] {
text-align: left;
-webkit-hyphens: auto;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-chars: 6 3 3;
-webkit-hyphenate-limit-lines: 2;
-webkit-hyphenate-limit-last: always;
-webkit-hyphenate-limit-zone: 8%;
hyphens: auto;
hyphenate-character: "-";
hyphenate-limit-chars: 6 3 3;
hyphenate-limit-lines: 2;
hyphenate-limit-last: always;
hyphenate-limit-zone: 8%;
}
/* Language does NOT support hyphenation ハイフン無し言語 */
html[lang="ja"] {
text-align: left;
hyphens: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment