Modal title
One fine body…
A rendered modal with header, body, and set of actions in the footer.
One fine body…
<div class="modal">
<div class="dialog">
<div class="content">
<div class="header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
</button>
<h4>Modal title</h4>
</div>
<div class="body"><p>One fine body…</p></div>
<div class="footer">
<button type="button" class="default" data-dismiss="modal">
Close
</button>
<button type="button" class="primary">Save changes</button>
</div>
</div>
<!-- /.content -->
</div>
<!-- /.dialog -->
</div> Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.
<button class="btn primary" data-toggle="modal" data-target="#live-modal">
Launch demo modal
</button>
Modals have two optional sizes, available via modifier classes to be placed on a .dialog.
<button class="btn primary" data-toggle="modal" data-target="#small-live-modal">
Small modal
</button>
<button class="btn primary" data-toggle="modal" data-target="#large-live-modal">
Large modal
</button>
For modals that simply appear rather than fade in to view, remove the .fade class from
your modal markup.
<div class="modal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
...
</div>