Skip to content

Instantly share code, notes, and snippets.

@jsteenkamp
Created February 2, 2012 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsteenkamp/1721864 to your computer and use it in GitHub Desktop.
Save jsteenkamp/1721864 to your computer and use it in GitHub Desktop.
Bootstrap v2 legend with nested columns
<!-- fix legend margin with nested row and row-fluid in bootstrap - https://github.com/twitter/bootstrap/issues/1578 add this:
legend+.row, legend+.row-fluid{margin-top:18px;-webkit-margin-top-collapse:separate;}
-->
<div class="row">
<div class="span12">
<fieldset>
<legend>My Legend</legend>
<div class="row">
<div class="span6">form control group</div>
<div class="span6">form control group</div>
</div>
</fieldset>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment