jsFiddle - https://jsfiddle.net/24by5tmv/1/
I've got a simple flex table that fixes the header and scrolls the table body but i'm wanting to vertically align center/middle the contents (header and body) within each cell.
Setting a cell to vertical-align: middle;
usually does the trick but it seems using flexbox is preventing vertically aligning cell contents.
I don't doubt i've overlooked something, and probably something simple, but does anyone have any ideas for fixing this?
Much appreciated :)
You can make the
th,td
element flex also and apply alignment inside them:Full code