Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Table like structure using the old table tag</h2> <p>Just kidding - or am i not.</p> <pre><code>&lt;table class="table"&gt; &lt;tr&gt;&lt;th&gt;Id&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Email address&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;100001&lt;/td&gt; &lt;td&gt;Joe&lt;/td&gt; &lt;td&gt;MamiePVillalobos@teleworm.us&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;100&lt;/td&gt; &lt;td&gt;Christine&lt;/td&gt; &lt;td&gt;ChristineJWilliams@dayrep.com&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;1001&lt;/td&gt; &lt;td&gt;John&lt;/td&gt; &lt;td&gt;JohnLMiley@dayrep.com&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; </code></pre> <h2>Using the grid system</h2> <p>In the documentation about the <a href="http://twitter.github.com/bootstrap/scaffolding.html#gridSystem">bootstrap grid system</a> i could not find any auto-width building blocks. Everything out of the box has a certain width and a fixed number of columns:</p> <pre><code> &lt;div class="row"&gt; &lt;div class="span2"&gt;ID&lt;/div&gt; &lt;div class="span2"&gt;Name&lt;/div&gt; &lt;div class="span8"&gt;E-Mail&lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;div class="span2"&gt;100001&lt;/div&gt; &lt;div class="span2"&gt;Joe&lt;/div&gt; &lt;div class="span8"&gt;MamiePVillalobos@teleworm.us&lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;div class="span2"&gt;100&lt;/div&gt; &lt;div class="span2"&gt;Christine&lt;/div&gt; &lt;div class="span8"&gt;ChristineJWilliams@dayrep.com&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Therefore i assume that you have to build your own version for a 3-column-table with auto-size.</p> <p>In my <a href="http://jsfiddle.net/CG6CT/7/">demo</a> the grid-column wraps if the space is to narrow or, if the space is too wide, the columns are stretched. </p> <h2>Update with creative markup</h2> <p>I updated my <a href="http://jsfiddle.net/CG6CT/7/">demo</a> with a custom class. The creative markup comes close to what you are looking for</p> <pre><code> &lt;div class="row"&gt; &lt;div class="spanFl"&gt;100000001 &lt;br /&gt; 100 &lt;/div&gt; &lt;div class="spanFl"&gt;Joe &lt;br/&gt; Christine &lt;/div&gt; &lt;div class="spanFl"&gt;MamiePVillalobos@teleworm.us &lt;br /&gt; ChristineJWilliams@dayrep.com &lt;/div&gt; &lt;/div&gt; </code></pre> <h3>Using css-3 display table</h3> <p>On <a href="http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/">tutsplus</a> i found an article using css-3 <code>display:table</code> to set up a table like layout. Unless you use three divs for each row it does not solve row wrapping issues.</p> <pre><code>#content { display: table; } #mainContent { display: table-cell; width: 620px; padding-right: 22px; } aside { display: table-cell; width: 300px; } </code></pre> <h2>Bootstrap responsive design</h2> <p>As far as i understood the <a href="http://twitter.github.com/bootstrap/scaffolding.html#gridSystem">bootstrap documentation</a> 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." </p> <p>Could you elaborate more why you can not use a table?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload