Friday, May 20, 2016

#Bootstrap form with horizontal labels

To get a form that has horizontal labels in Bootstrap like this:

Do this

<form class="form-horizontal" method="POST" action="">
<div class="form-group ">
    <label class="col-md-2 control-label" for="eventTitle">Event</label>
    <div class="col-md-10">
      <input class="form-control" id="eventTitle" type="text">
    </div>
</div>

</form>


No comments:

Post a Comment

There was an error in this gadget