On this page
  1. inline-size
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

inline-size

Prev: `overflow` | Up: box_model | Next: positioning
Rel: box_model, Box Model & Sizing Guide
Ref: MDN Web Docs — inline-size
Tags: #public #web #css #properties #box_model #tier/standard


Syntax & Overview

inline-size: min(100%, 65ch);

Logical equivalent of width in horizontal writing modes.

Notes & Best Practices

Example

.article {
  inline-size: min(65ch, 100% - 2rem);
  margin-inline: auto;
}

Linked from

Related notes