javascript - How to set jQuery datatables row height to a very small number? I need a very "compact" table -


"how set row height jquery datatables" asked question , know how it. i'm trying is, set value small number, failed that.

take @ following example: http://jsfiddle.net/x9o891c5/

#example tr td {     height: 50px; } 

the row height set 50px, works well. when change number 30px or 70px, run it, height changed normally, too.

but when try set value samll number, such 10px, 5px or 1px, height doesn't change. seem datatables 'smart', detects height of content contains , don't allow user set small value.

but i'm trying is, create "compact" table, able show more data within small screen, such 1366*768 laptop screen, without having scroll up/down. want squeeze margin out. take @ example table, there still margin. need table without margin: a microsoft word table without margin

and can accept part of text eclipsed.

you can manage height of rows reducing line-height height of content of td.

for example:

#example tr td { line-height: 10px; 

}


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -