mengatur label dan textboxt di asp.net

inline label dan textbox di asp.net

<div class="form-inline">
<fieldset>
<legend></legend>
<asp:textbox cssclass="form-control" id="TextBox2" runat="server" width="135px"></asp:textbox>
<asp:textbox aria-describedby="ddkodesampel" aria-label="..." cssclass="form-control" id="tkodesampel" placeholder="Kode Sampel" runat="server"></asp:textbox>
<asp:button cssclass="btn btn-default btn-clear" id="Button1" runat="server" text="Pindai">
</asp:button></fieldset>
</div>

begitulah kode nya,silakan coba aja,dengan catatan pakai script bootstrap dan HTML 5. atau bisa juga seperti dibawah ini :

<div class="form-group">
    <label class="control-label col-md-3">X:</label>
    <div class="input-group col-md-7">
      <input class="form-control" type="text">
      <span class="input-group-addon">m</span>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-3">Y:</label>
    <div class="input-group col-md-7">
      <input class="form-control" type="text">
      <span class="input-group-addon">m</span>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-3">Z:</label>
    <div class="input-group col-md-7">
      <input class="form-control" type="text">
      <span class="input-group-addon">m</span>
    </div>
  </div

0 KOMENTAR