html5-kitchen-sink
html5-kitchen-sink copied to clipboard
Adds table with columns and colgroups
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.
Is there a reason for all the empty elements? Do you have a visual link for this?
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.