Skip to content

Instantly share code, notes, and snippets.

@atstyle
Created January 23, 2014 05:39
Show Gist options
  • Select an option

  • Save atstyle/8573482 to your computer and use it in GitHub Desktop.

Select an option

Save atstyle/8573482 to your computer and use it in GitHub Desktop.
Bootstrap 3.0でlabelとinputを横並び
<form class="well form-horizontal" action="xxx.cgi" method="post">
<fieldset>
<legend accesskey="1"><kbd>1</kbd>お客様の情報をご記入ください</legend>
<div class="form-group">
<label for="name" class="col-sm-5 control-label">名前<kbd>n</kbd> <strong>必須</strong></label>
<div class="col-sm-7">
<input type="text" class="form-control" id="name" value="" size="24" placeholder="お名前をご記入ください" required>
</div>
</div>
</fieldset>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment