html - Display input label underneath input element -
i've been trying display label underneath input element form: http://www.appnitro.com/demo/view.php?id=7
i have been able labels underneath, using current method cant have multiple inputs on same line form linked to.
what best , cleanest way this?
here's current code: http://jsfiddle.net/6zngu/
you can see looking @ source of example gave. put each input
label
span
has float: left
set.
see here: http://jsfiddle.net/ab9hv/
and way, can put input
inside label
, don't need for
attribute.
<span style="float: left;"> <label><input type="text" name="fn"/>first</label> </span> <span style="float: left;"> <label><input type="text" name="ln"/>last</label> </span>
new code: http://jsfiddle.net/qwdmr/
Comments
Post a Comment