coderef

text-indent: hangingBaseline · Newly available

The text-indent: hanging CSS declaration indents all lines except the first.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Mar 13, 2026.

Browser support

DesktopChrome
1–145Not supported
146+Supportedsince Mar 10, 2026
Current: 155
Edge
12–145Not supported
146+Supportedsince Mar 13, 2026
Current: 154
Firefox
1–120Not supported
121+Supportedsince Dec 19, 2023
Current: 157
Safari
1–14.1Not supported
15+Supportedsince Sep 20, 2021
Current: 27
MobileChrome Android
18–145Not supported
146+Supportedsince Mar 10, 2026
Current: 155
Firefox Android
4–120Not supported
121+Supportedsince Dec 19, 2023
Current: 157
Safari iOS
1–14.5Not supported
15+Supportedsince Sep 20, 2021
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Mar 13, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

CSS · check before using
@supports (text-indent: hanging) {
  /* styles that rely on text-indent: hanging */
}

/* or in JavaScript */
if (CSS.supports("text-indent", "hanging")) {
  // use it
}