Skip to content

Commit

Permalink
Update files/en-us/web/css/css_text/wrapping_breaking_text/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored Nov 5, 2024
1 parent 96a7d36 commit 1e6dcbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ In the example below there is a checkbox and label. Let's say, you want the labe

## Adding hyphens

To add hyphens when words are broken, use the CSS {{cssxref("hyphens")}} property. Using a value of `auto`, the browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses. To have some control over the process, use a value of `manual`, then insert a hard (`-`) or soft break character (U+00AD) into the string. A soft break character can be added using `­`, `­`, or `&#xad` HTML character codes as well. A hard break will always break, even if it is not necessary to do so. A soft break only breaks if breaking is needed.
To add hyphens when words are broken, use the CSS {{cssxref("hyphens")}} property. Using a value of `auto`, the browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses. To have some control over the process, use a value of `manual`, then insert a hard (U+2010) or soft break character (U+00AD) into the string. A hard break character can be added using `` or `‐`, and a soft break character can be added using `­`, `­`, or `&#xad` HTML character codes. A hard break will always break, even if it is not necessary to do so. A soft break only breaks if breaking is needed.

```html live-sample___hyphens
<div class="box">
Expand Down

0 comments on commit 1e6dcbc

Please sign in to comment.