Skip to content

Instantly share code, notes, and snippets.

@sake92
Last active May 2, 2017 13:36
Show Gist options
  • Save sake92/e9077cbc3b4dfcccfc37cb7c2ca6de8e to your computer and use it in GitHub Desktop.
Save sake92/e9077cbc3b4dfcccfc37cb7c2ca6de8e to your computer and use it in GitHub Desktop.
Bootstrap Example// source http://jsbin.com/pimepevapi
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
.modal, .modal-dialog, .modal-content {
height: 100%;
}
</style>
</head>
<body>
<div class="container">
<h2>Modal Example</h2>
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog" >
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<iframe src="https://www.w3schools.com">
</iframe>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
@sake92
Copy link
Author

sake92 commented May 2, 2017

Task:

  • set the height of iframe to 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment