Kevin Schaul

Visual journalist/hacker

Control HTML table widths with table-layout: fixed;

March 30, 2023

Just learned about the CSS property table-layout: fixed; that makes HTML table column widths follow sane rules. They will actually respect the width values you give them.

There are a lot of great usage examples on this css tricks post from … 2014. How did I not know about this?