I am trying to create a CSS table that (for layout purposes) has a title above and below.
Unfortunately, as far as I can tell , display: table-caption merges everything into one space at the top. This means that only the title of the title is actually displayed.
I tried to treat them as rows instead , but for some reason their width is tied to the width of the first column of the table. (Am I doing something wrong here?) The same thing happens if I make them regular div with their width set to 100% .
Is there another, perhaps more elegant way to have multiple table headers? Did I make some stupid mistake in my attempts to lure the layout?
source share