Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tailwind CSS table header not respecting text-right

I'm using tailwindcss to generate code for a table, but I can't get the headers to respect the text-right / text-left / text-center directives.

Here's a fiddle: https://jsfiddle.net/3u2jgqoc/

Is there a way to line up the header name so that it would match with the column? (In the example I've set the Address header to text-right since it's the most obvious that it's actually aligning left, but I'd probably want to align the date header as text-right).

like image 257
user101289 Avatar asked Oct 28 '25 01:10

user101289


1 Answers

I suppose you don't need the flex class, but having block instead.

like image 61
Gabriel Bueno Avatar answered Oct 29 '25 19:10

Gabriel Bueno



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!