text-size-adjust

Mainly used for mobile devices, this property tells the browser whether it should automatically increase the size of text to make it more readable when you rotate your phone or zoom in. Setting it to 'none' prevents this behavior.

It is documented as part of the CSS Mobile Text Size Adjustment specification. This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
html {
  /* Prevents iOS Safari from automatically resizing text when rotating from portrait to landscape */
  text-size-adjust: none;
}

/* Syntax */
text-size-adjust: none;
text-size-adjust: auto;

/* Global values */
text-size-adjust: inherit;
text-size-adjust: initial;
text-size-adjust: revert;
text-size-adjust: revert-layer;
text-size-adjust: unset;
Widely available Since 2015 92% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

54+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC