“tables” Articles

Easier striped tables with the 'of [selector]' syntax

A white and green zebra illustration. The zebra only has stripes on half of its body, causing its lower half to blend into the background.

It’s common for a table design to feature alternating row colors, which is pretty trivial to accomplish with CSS. But then if you need to hide some rows later, the striped background gets all messed up.

Or at least it used to. It turns out I completely slept on a cool CSS feature that makes this a non-issue.

Read Article

My 3 most-wanted CSS table features

An illustration of a table wrapped up in a ribbon as a gift

The <table> element is one of the oldest and most-common elements on the web. But it's also been long overlooked in terms of receiving new CSS features and quality-of-life improvements, unlike other elements that tend to get more love and attention.

I think it's time for the <table> element to get a few CSS improvements of its own. Here's three features that I'd like to see.

Read Article