Comments 1Erez started the conversationNovember 7, 2020 at 6:58amHiI wanter to center align the data on some of my columns.I gave these columns a class name to make it easier.I used this custom CSS code: td.drill-frac, td.drill-mm, td.drill-inch { text-align:center!important;}When the data type is text it works fine. However, when the data type in float the columns stays right aligned whatever I do.Please let me know how I can align not text data.Thanks,Erez 2,572Aleksandar repliedNovember 9, 2020 at 12:43pmHello ErezFloat and integer overrides that, so you need to use something like this: table.wpDataTable td.float.drill-mm { text-align: center !important; }I just tested it locally, and it works.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 1Erez repliedNovember 9, 2020 at 5:06pmWorks GreatThanks! 2,572Aleksandar repliedNovember 10, 2020 at 2:03pmYou're welcome, ErezGlad I could be of service.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Hi
I wanter to center align the data on some of my columns.
I gave these columns a class name to make it easier.
I used this custom CSS code:
When the data type is text it works fine. However, when the data type in float the columns stays right aligned whatever I do.
Please let me know how I can align not text data.
Thanks,
Erez
Hello Erez
Float and integer overrides that, so you need to use something like this:
I just tested it locally, and it works.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Works Great
Thanks!
You're welcome, Erez
Glad I could be of service.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables