Resizing height for td, th in Bootstrap

I can't seem to control the height of td and th in my bootstrap table or datatable.  Any help would be much appreciated!

Table:
http://www.gopherstateevents.com/results/cc_rslts/cc_rslts.asp?sport=Cross-Country

DataTable:
http://www.gopherstateevents.com/results/fitness_events/results.asp?event_type=5&event_id=666&race_id=1173

Thank you!
Bob SchneiderCo-OwnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
Your DataTable is styled in the jquery.dataTables.min.css file:

table.dataTable tbody th, table.dataTable tbody td {
   padding: 8px 10px;
}

Open in new window

Your main table is styled in the bootstrap.min.css:

.table td, .table th {
   padding: .75rem;
}

Open in new window

You look like you're trying to override it in your local_styles.css:

td, th {
    padding: 0;
}

Open in new window

... but CSS has a thing called specificity! This, along with the order of rules dictates which rule gets applied. The styles in your local_styles has a lower specificity than the others, so doesn't get applied. Basically, your rules apply to a general TH or TD wheres the other styles apply to specific TH and TD elements - namely those inside the .table class and the table.dataTable tbody element.

To override them in your own style, you need to use at least the same specificity. You may be tempted to use the !important keyword. Don't ... it's usually a hack.
1
lenamtlCommented:
Datatables have a Bootstrap CSS so when download Datatables you can select at
Step 1. Choose a styling framework = Bootstrap 3

Replace jquery.dataTables.min.css
by dataTables.bootstrap.css and  from the dataTables.bootstrap.css  edit the table CSS TH TD and this should be ok.

I also recommend the use of Responsive extension of Datatables which resized the table depending of the device and add a + button to display the value.
https://datatables.net/reference/option/responsive
https://datatables.net/extensions/responsive/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.