html5-kitchen-sink icon indicating copy to clipboard operation
html5-kitchen-sink copied to clipboard

Adds table with columns and colgroups

Open paceaux opened this issue 3 years ago • 4 comments
trafficstars

Howdy,

I looked through the different examples of tables that I had in my table-baseline.css and noticed that I'd missed an example using <col> and <colgroup>. I made an update to my own CSS baseline's test.html file, and this update is that exact same HTML. It also covers the complex use-case of multiple rows in a thead and row headers, too.

paceaux avatar Dec 21 '21 21:12 paceaux

Is there a reason for all the empty elements? Do you have a visual link for this?

dbox avatar Dec 22 '21 16:12 dbox

Yep, here's a link: https://codepen.io/paceaux/pen/KKWwyMa

If you're referring to the <col />, that's actually how it works. They're meant to be empty . But if you look at the link, you'll see that in the <thead> there's basically columnheaders for column headers. and the left-most column doesn't need a header for a header.

paceaux avatar Dec 23 '21 01:12 paceaux