How to make table smaller?
How to make table smaller?
![onica](https://secure.gravatar.com/avatar/3bdabd917ca1ea011be1a75d38f4ee9d/?default=https%3A%2F%2Fvanillicon.com%2F3bdabd917ca1ea011be1a75d38f4ee9d_200.png&rating=g&size=120)
Link to test case: https://live.datatables.net/cufobeni/8/edit
Description of problem: I need to make the table smaller. In the live preview all columns,are too big. I need every column to only have 10 or 20px, just to fit the number with 2 digits
Answers
You mean you want to remove the padding on the cells? Right click on an element and select "Inspect" to find out what styling is applied to it and from where. You can override the styles if you need to in some custom CSS.
DataTables' default style does have a
compact
class that can be applied to the table to reduce the padding, which might be enough for you though: https://live.datatables.net/cufobeni/10/editAllan