Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set tfoot position

Is it possible to style the tfoot section of a table so it shows between the thead and tbody?

I would like to get a table to look like this:

enter image description here

like image 583
Jake Pearson Avatar asked Jul 27 '26 06:07

Jake Pearson


1 Answers

Per my comment, you probably don't want to be making a table footer appear as anything other than a table footer.

But assuming you have the properly-ordered markup, this should work in whatever browser supports it:

thead, tfoot {
    display: table-header-group;
}

jsFiddle preview

like image 169
BoltClock Avatar answered Jul 28 '26 19:07

BoltClock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!