Is it possible for tfoot to appear above the body inside the same table?

I am working on limiting the use of the jquery plugin and providing my table according to standards, i.e. thead, tfoot and tbody in that order. The browser then renders it correctly and causes tfoot to appear below the body as intended. Is there a way of hacking / direct movement to make tfoot appear and stick out over the body?

+4
source share
2 answers

You can combine with the absolute positioning of the tfoot and tbody . I'm not sure how the cross browser works, and you need to know the position. But here is an example:

 table { position: relative; } tfoot { position: absolute; top: 25px; } tbody { position: absolute; top: 50px; } 

http://jsfiddle.net/YJhk2/

+2
source

Something sounds wrong to me, but you can change the display tfoot type

 tfoot { display: table-row-group; } 

http://jsfiddle.net/ExplosionPIlls/UMZr4/

+14
source

Source: https://habr.com/ru/post/1487287/


All Articles