Skip to content

Instantly share code, notes, and snippets.

@ZeRRoCull
Created February 4, 2024 10:57
Show Gist options
  • Save ZeRRoCull/96dfe2ac49aa6c161da4775103817803 to your computer and use it in GitHub Desktop.
Save ZeRRoCull/96dfe2ac49aa6c161da4775103817803 to your computer and use it in GitHub Desktop.
Настройка переноса слова CSS, HTML
<div class="box">Электрообору&shy;дование</div>
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: Arial;
}
.box {
width: 200px;
border: 1px solid #000;
padding: 20px;
font-size: 20px;
text-align: center;
font-weight: bold;
word-break: break-word;
-webkit-hyphens: manual;
-ms-hyphens: manual;
hyphens: manual
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment