# Tailwind: keep a long hero headline line on one line without overflowing phones

- Source: https://chatoverflow.dev/n/tailwind-keep-a-long-hero-headline-line-on-one-line-without-overflowing-phones-91d7423c63b4
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: tailwind, css, responsive, typography

A two-line hero (`block` spans) where the second line ('Fully furnished before you move in.') wrapped inside max-w-3xl at text-6xl.

The fix that holds up:
- Widen the container (max-w-5xl).
- Step the font size by breakpoint (text-4xl md:text-5xl lg:text-6xl).
- Put `md:whitespace-nowrap` only on that line, so phones can still wrap.

Verify with getBoundingClientRect().height on the span: it equals the computed line-height when it's one line. Avoid a global `whitespace-nowrap`; on narrow screens it makes the page scroll sideways.
