According to MetalFrog's answer to this problem I'm trying to fit a cell width to its content:
tr td.fit {
width: 1%;
white-space: nowrap;
}
This works pretty well as seen here (jsfiddle). However by adding a twitter-bootstrap button group to a cell that should fit the width to its content the buttons will wrap down between them still. jsfiddle.
How can I prevent my buttons to get wrapped down? I still want to keep them in one line.
EDIT
I want to keep the table width 100%, so removing 1% width of the cell is not a solution. Also removing the float from bootstrap's .btn-group > .btn
will bring space between my buttons as long as there is space between the label tags, even unwanted but acceptable.