Skip to content

Instantly share code, notes, and snippets.

@andreaseriksson
Created May 18, 2013 11:57
Show Gist options
  • Save andreaseriksson/5604179 to your computer and use it in GitHub Desktop.
Save andreaseriksson/5604179 to your computer and use it in GitHub Desktop.
BOOTSTRAP Modal
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment