---
title: "Chris Coyier on Twitter: \"I was unaware of `text-wrap: pretty;..."
description: "!https://twitter.com/chriscoyier/status/1681407724993798144"
date: 2023-07-28
published: true
tags:
  - css
  - dev
  - thought
  - webdev
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://twitter.com/chriscoyier/status/1681407724993798144" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://pbs.twimg.com/profile_images/883049860332609537/IsUISvAq_200x200.jpg" alt="Chris Coyier (<a href="https://chriscoyier.net" class="mention" data-name="Chris Coyier" data-bio="Web craftsman, blogger, author, speaker." data-avatar="https://s0.wp.com/_si/?t=eyJpbWciOiJodHRwczpcL1wvaTAud3AuY29tXC9jaHJpc2NveWllci5uZXRcL3dwLWNvbnRlbnRcL3VwbG9hZHNcLzIwMjFcLzA3XC9Jc1VJU3ZBcV80MDB4NDAwLmpwZz9maXQ9NDAwJTJDNDAwJnNzbD0xIiwidHh0IjoiQ2hyaXMgQ295aWVyIiwidGVtcGxhdGUiOiJlZGdlIiwiZm9udCI6IiIsImJsb2dfaWQiOjc0MDc0MjQ4fQ.bvKLReBBKcA57TVb4-g9yEs2QdY7VFEGHqUPK_9OQuAMQ" data-handle="@chriscoyier">@chriscoyier</a>) on X — I was unaware of `text-wrap: pretty;`

I knew about the (new/cool) `text-wrap: balance;` — but sometimes that&#39;s a bit... too much. I feel like it&#39;s nice on headers but not smaller type.

Here&#39;s what I mean." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Chris Coyier (<a href="https://chriscoyier.net" class="mention" data-name="Chris Coyier" data-bio="Web craftsman, blogger, author, speaker." data-avatar="https://s0.wp.com/_si/?t=eyJpbWciOiJodHRwczpcL1wvaTAud3AuY29tXC9jaHJpc2NveWllci5uZXRcL3dwLWNvbnRlbnRcL3VwbG9hZHNcLzIwMjFcLzA3XC9Jc1VJU3ZBcV80MDB4NDAwLmpwZz9maXQ9NDAwJTJDNDAwJnNzbD0xIiwidHh0IjoiQ2hyaXMgQ295aWVyIiwidGVtcGxhdGUiOiJlZGdlIiwiZm9udCI6IiIsImJsb2dfaWQiOjc0MDc0MjQ4fQ.bvKLReBBKcA57TVb4-g9yEs2QdY7VFEGHqUPK_9OQuAMQ" data-handle="@chriscoyier">@chriscoyier</a>) on X</div>
      <div class="embed-card-description">I was unaware of `text-wrap: pretty;`

I knew about the (new/cool) `text-wrap: balance;` — but sometimes that&#39;s a bit... too much. I feel like it&#39;s nice on headers but not smaller type.

Here&#39;s w...</div>
      <div class="embed-card-meta">X (formerly Twitter) &middot; twitter.com</div>
    </div>
  </a>
</div>



Next time I'm working with large headers on small screens I need to try this.  I always truggle to get them to look good for most text and overflow ridiculously long words correctly or at all.


``` css
text-wrap: pretty;
text-wrap: balance
```
