---
title: "Comment by Prateek Aher on \"TIL: Hyphenate when you justify text\" | Hashnode"
description: "That&#39;s a nice piece of info Bhanu Teja Pachipulusu . But with hyphens: auto , long words look weird if hyphenated at the wrong place. We can use it in conju"
url: "https://hashnode.com/posts/til-hyphenate-when-you-justify-text/5f469843a639932bd830f8c0/comment/5f46e5c0b3e09a2eded7e704"
---

[Discussion](https://hashnode.com/posts/til-hyphenate-when-you-justify-text/5f469843a639932bd830f8c0)

Comment [TIL: Hyphenate when you justify text](https://hashnode.com/posts/til-hyphenate-when-you-justify-text/5f469843a639932bd830f8c0)

[Prateek Aher](https://hashnode.com/@prateek_aher)

[Aug 26, 2020](https://hashnode.com/posts/til-hyphenate-when-you-justify-text/5f469843a639932bd830f8c0/comment/5f46e5c0b3e09a2eded7e704)

That's a nice piece of info [Bhanu Teja Pachipulusu](https://hashnode.com/@pbteja1998). But with `hyphens: auto` , long words look weird if hyphenated at the wrong place. We can use it in conjunction with `<wbr>` tag.

[Bhanu Teja Pachipulusu](https://hashnode.com/@pbteja1998)

[Aug 27, 2020](https://hashnode.com/posts/til-hyphenate-when-you-justify-text/5f469843a639932bd830f8c0/comment/5f46e5c0b3e09a2eded7e704#reply-5f470df0b3e09a2eded7e769)

[Prateek Aher](https://hashnode.com/@prateek_aher) Good suggestion.

But, When you use `<wbr>` along with `hyphens: auto`, the browser will still break the word using hyphens at random places(chrome), so that the text will remain justified (or) it will not break the word at all and moves the text to next line and the irregular spacing will appear again.(firefox)

For example, try to see the result of the following in yout chrome and firefox browsers.

```
<p>I recently set out to implement user registration for a project<wbr>isgood that I'm working on in Elixir/Phoenix. It wasn't long before I could finish It wasn't long before I could finish</p>
```

```
p {
    text-align: justify;
    hyphens: auto;
    width: 570px;
    font-size: 24px;
    margin: 0 auto;
}
```

In chrome, 

In firefox,
