Looking to add some creative CSS theming to the header of a table? Unfortunately, tables don't support this natively. But fear not – there's a workaround!
My solution is to insert an element BEHIND the table head and apply the desired styles to that instead.
However, my attempts at using tables, tbodies, theads, th's, or td's with negative z-indexes have all been unsuccessful.
Alternatively, I could place my table header in its own table and then style the encapsulating table. The downside? The alignment between th's in the header and td's in the tbody would be off since divs are not allowed inside tables without being nested within td or tr elements...
The visual effects I'm aiming for include setting border width and color, applying border radius, and incorporating background images and colors.
Unfortunately, it's the border radius that's causing trouble.
Any fresh ideas on how to achieve this?