Created
February 4, 2024 10:57
-
-
Save ZeRRoCull/96dfe2ac49aa6c161da4775103817803 to your computer and use it in GitHub Desktop.
Настройка переноса слова CSS, HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box">Электрообору­дование</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