Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8716913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:11:42+00:00 2026-06-13T06:11:42+00:00

How do you use Twitter Bootstrap to create a table-like list structure, where some

  • 0

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      |MamiePVillalobos@teleworm.us
100   |Christine|ChristineJWilliams@dayrep.com
1001  |John     |JohnLMiley@dayrep.com

the Id column takes just enough space to accommodate the 100001 id, which is the longest id.

The Name column takes just enough space to accommodate the name Christine.

The Email column takes the remaining space.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:11:43+00:00Added an answer on June 13, 2026 at 6:11 am

    Table like structure using the old table tag

    Just kidding – or am i not.

    <table class="table">
      <tr><th>Id</th>     <th>Name</th>      <th>Email address</th></tr>
      <tr><td>100001</td> <td>Joe</td>       <td>MamiePVillalobos@teleworm.us</td></tr>
      <tr><td>100</td>    <td>Christine</td> <td>ChristineJWilliams@dayrep.com</td></tr>
      <tr><td>1001</td>   <td>John</td>      <td>JohnLMiley@dayrep.com</td></tr>
    </table>
    

    Using the grid system

    In the documentation about the bootstrap grid system i could not find any auto-width building blocks. Everything out of the box has a certain width and a fixed number of columns:

       <div class="row">
          <div class="span2">ID</div>
          <div class="span2">Name</div>
          <div class="span8">E-Mail</div>
        </div>
        <div class="row">
          <div class="span2">100001</div>
          <div class="span2">Joe</div>
          <div class="span8">MamiePVillalobos@teleworm.us</div>
        </div>
            <div class="row">
          <div class="span2">100</div>
          <div class="span2">Christine</div>
          <div class="span8">ChristineJWilliams@dayrep.com</div>
        </div>
    

    Therefore i assume that you have to build your own version for a 3-column-table with auto-size.

    In my demo the grid-column wraps if the space is to narrow or, if the space is too wide, the columns are stretched.

    Update with creative markup

    I updated my demo with a custom class. The creative markup comes close to what you are looking for

      <div class="row">
          <div class="spanFl">100000001 <br />
            100
          </div>
          <div class="spanFl">Joe <br/>
              Christine
          </div>
          <div class="spanFl">MamiePVillalobos@teleworm.us <br />
            ChristineJWilliams@dayrep.com
          </div>
      </div>    
    

    Using css-3 display table

    On tutsplus i found an article using css-3 display:table to set up a table like layout. Unless you use three divs for each row it does not solve row wrapping issues.

    #content {  
        display: table;  
    }  
    #mainContent {  
        display: table-cell;  
        width: 620px;  
        padding-right: 22px;  
    }  
    aside {  
        display: table-cell;  
        width: 300px;  
    }  
    

    Bootstrap responsive design

    As far as i understood the bootstrap documentation there is no built-in soultion for a 3-column layout with auto and remaining width. To Quote the responsive design page on bootstrap: “Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.”

    Could you elaborate more why you can not use a table?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use twitter bootstrap to create Facebook like tooltip layout. I would
I have started to use frameworks like Twitter Bootstrap , but if Twitter releases
Nivo slider and Twitter bootstrap do NOT like each other! If you use thumbs
I'd like to use Bootstrap from Twitter in my ASP.Net MVC 3 application. I
I want to use twitter bootstrap for some site I am working on. This
I am trying to use Twitter Bootstrap tabbable and Bootstrap popovers in a same
I am trying to use Twitter Bootstrap for GWT and get the same nice
I have recently started to use Twitter Bootstrap and trying to understand how it
I work in IE 9 and want to use Twitter Bootstrap. One of the
Basically, I tried to use twitter-bootstrap-rails and devise gem in my app. However, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.