Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>EDIT 2:</p> <p>Add </p> <pre><code>.short{ width: auto !important; } </code></pre> <p>to CSS to draw the ZIP field with full lenght as in picture. </p> <hr> <p>EDIT: remove <code>border: 1px solid silver;</code> when you have understood how positioning is working, it's for debug purpose ;)</p> <hr> <p>Look at: <a href="http://jsfiddle.net/pb6mM/3/" rel="nofollow">http://jsfiddle.net/pb6mM/3/</a></p> <pre><code>form input[type="submit"]{ position: absolute; right: 0; bottom: 0; } fieldset{ border: 1px solid silver; } .fieldsetDate{ padding-right: 30px; } .inlineBlock{ display: inline-block; } </code></pre> <p>And added </p> <pre><code> margin-top: 6px; margin-bottom: 6px; </code></pre> <p>to <code>.dob-select {</code> to make it the same height of the normal text field.</p> <p>HTML:</p> <pre><code>&lt;div id="form-container"&gt; &lt;form&gt; &lt;fieldset&gt; &lt;label for="name"&gt;Name&lt;/label&gt; &lt;input type="text" name="name"&gt; &lt;/fieldset&gt; &lt;fieldset class="fieldsetDate inlineBlock"&gt; &lt;label for="dob"&gt;date of birth&lt;/label&gt; &lt;div class="dob-select"&gt; &lt;select name="dob_day"&gt; &lt;option value="01"&gt;01&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class="dob-select" &gt; &lt;select name="dob_month"&gt; &lt;option value="01"&gt;Jan&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class="dob-select"&gt; &lt;select name="dob_year"&gt; &lt;option value="2012"&gt;2012&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;fieldset class="inlineBlock"&gt; &lt;label for="zip"&gt;zip&lt;/label&gt; &lt;input type="text" class="short" name="zip"&gt; &lt;/fieldset&gt; &lt;fieldset&gt; &lt;label for="email"&gt;Email&lt;/label&gt; &lt;input type="email" name="email"&gt; &lt;/fieldset&gt; &lt;fieldset&gt; &lt;label for="subscribe"&gt;&lt;input type="checkbox" class="left"&gt; &lt;p class="left"&gt;Tick&lt;/p&gt;&lt;/label&gt; &lt;input type="submit" name="submit"&gt; &lt;/fieldset&gt; &lt;/form&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. VO
      singulars
      1. This table or related slice is empty.
    2. 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