Jake Pearson
Jake Pearson

Reputation: 27727

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

Upvotes: 2

Views: 4641

Answers (2)

Jawad
Jawad

Reputation: 6672

Try this

Fiddle

Upvotes: 0

BoltClock
BoltClock

Reputation: 724172

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

Upvotes: 10

Related Questions