jch02140 Posted July 7, 2015 Share Posted July 7, 2015 I am using a jquery plugin called Datatable and playing a bit with the example code. However, the text in the first row are not centered like the rest. Is there a way to center the texts in the first row? Here is the fiddle I tried using the following methods but none of them works: <thead style="text-align:center"> and <th style="text-align:center"> Link to comment Share on other sites More sharing options...
Ingolme Posted July 7, 2015 Share Posted July 7, 2015 The heading table cells have uneven padding. This is the code that's causing the problem: table.dataTable thead > tr > th { padding-right: 30px;} Coming from the dataTables.bootstrap.css file. 1 Link to comment Share on other sites More sharing options...
jch02140 Posted July 9, 2015 Author Share Posted July 9, 2015 Oh Ok. Thanks for the tips. I did some fix and it's all good now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now