How to create a dynamic width column in Twitter Bootstrap

Posted by Elad on Stack Overflow See other posts from Stack Overflow or by Elad
Published on 2012-10-21T15:15:07Z Indexed on 2012/10/22 17:01 UTC
Read the original article Hit count: 296

How do you use Twitter Bootstrap to create a table-like list structure, where some columns take as much space as required to accommodate the widest element of that column, and a single column takes the remaining space?

For example

Id    |Name     |Email address                
100001|Joe      |[email protected]
100   |Christine|[email protected]
1001  |John     |[email protected]

the Id column takes just enough space to accommodate the 100001 id which is the longest id, and the Name column takes just enough space to accommodate the name Christine. The Email column takes the remaining space.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html