Bootstrap modal


Snippet Details

Shortcut
bsmodal
Description
Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.
Language
HTML
Author
Dylan Hayes
Upload on
27-2-2014 16:04:44
Downloads
2507

Code Output

        <!-- Button trigger modal -->
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<div id="myModal" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Modal title</h4>
      </div>
      <div class="modal-body">
        <p>One fine body&hellip;</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

    

HTML Output


Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages