Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Solution 1:</strong> <a href="http://jsfiddle.net/wMUAK/" rel="nofollow">http://jsfiddle.net/wMUAK/</a></p> <p>CSS</p> <pre><code>label { float: left; width: 100px; padding: 2px; } .c1 { float: left; width: 200px; } .c2 { float: left; width: 40px; margin-right: 10px; } .c3 { float: left; width: 150px; } .c1 input[type=text], .c2 input[type=text], .c3 input[type=text] { width: 100%; } .clear { clear: both; } </code></pre> <p>HTML Name ZIP and city </p> <p><strong>Solution 2:</strong> <a href="http://jsfiddle.net/HSkyq/5/" rel="nofollow">http://jsfiddle.net/HSkyq/5/</a></p> <p>CSS</p> <pre><code>.table { display: table; } .table .row { display: table-row; } .table .cell { display: table-cell; } .group { display: table; width: 100%; } .group .gcell { display: table-cell; } .table input { width: 100%; }​ </code></pre> <p>HTML</p> <pre><code>&lt;div class="table" style="width: 300px;"&gt; &lt;div class="row"&gt; &lt;div class="cell" style="width:40%;"&gt; &lt;label for="name"&gt;Name&lt;/label&gt; &lt;/div&gt; &lt;div class="cell"&gt; &lt;input type="text" id="name" name="name" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;div class="cell"&gt; &lt;label for="city"&gt;ZIP and city&lt;/label&gt; &lt;/div&gt; &lt;div class="cell"&gt; &lt;div class="group"&gt; &lt;div class="gcell" style="width: 40%;"&gt; &lt;input type="text" name="zip" style="width: 90%;" /&gt; &lt;/div&gt; &lt;div class="gcell"&gt; &lt;input type="text" name="city" id="city" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;​ </code></pre>
    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. This table or related slice is empty.
    1. 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