First of all, do not style using
id
’s, instead use.class
so that you can duplicate it.
Now wrap the
<label>
and<input>
with a<div>
<div class="outer">
<div>
LABEL
</div>
<div>
INPUT
</div>
</div>
Do the above for each
label
and its correspondinginput
’s
Give
.outer
a full 100% width and givelabel
andinput
50% width
NOTE: Use
class
names notId
’s