css html twitter-bootstrap

Expand bootstrap div width with content

I have two divs, a col-md-2 and a col-md-10.

How can I make the col-md-10 div expand its width with content?

For example, if I have a really wide table inside the col-md-10 div, parts of it expand outside the div.

you can use this css trick

set it to display: inline-block.

or you can use a diff class with that table and use this custom css

.table {
display: table; /* IE8+ and all other modern browsers */