Skip to content

Instantly share code, notes, and snippets.

@kamalhm
Created August 10, 2019 10:06
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 kamalhm/12d7ca34cddcafd4f2e9549229d1b049 to your computer and use it in GitHub Desktop.
Save kamalhm/12d7ca34cddcafd4f2e9549229d1b049 to your computer and use it in GitHub Desktop.
CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modal Dialog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
<body>
<button type="button" data-toggle="modal" data-target="#dialog" class="btn btn-primary">Open</button>
<div class="modal" id="dialog">
<div class="modal-dialog">
<div class="modal-body modal-content">
<button type="button" data-dismiss="modal" class="btn btn-danger">Close</button>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment