Daniel Matthew

Ensure A Table Fills Its Containing Element

table {
  table-layout: fixed; // Default is auto

I was wondering what the correct CSS property was to control this requirement. Setting a width on the table element was doing precisely zip. That is until we set the above.

Daniel is a front-end developer at Talis, with an interest in accessibility, performance, and web components.