CSS table spacing and box-sizing

2012-04-11

Discovered two things about css today: you can turn off table spacing with “border-spacing: 0px” and the default box-sizing for tables differs between browsers, it is “box-sizing: content-box” on WebKit and “box-sizing: border-box” on all other browsers. Note though that box-sizing is not relevant until you set “display: block” for the table.

Leave a Reply

Twitter: @mikeplate