Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"<iframe> in Custom Modal"
Bootstrap 3.1.0 Snippet by
Geniusone
3.1.0
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
740
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Submitted to Feature March 2, 2014 10:20pm --> <div class="container"> <div class="row"> <h2>TEST: iFrame in Custom Modal</h2> <p>Modal contains iframes and has custom height. opacity and background-color.</p> <p><a href="http://bootsnipp.com/iframe/8Z7b" target="_blank">View Full Screen</a></p> <!-- Button trigger modal --> <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> Launch modal with iframe </button> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Code Guide by @mdo</h4> <p>Standards for developing flexible, durable, and sustainable HTML and CSS.</p> </div> <div class="modal-body"> <iframe src="http://mdo.github.io/code-guide/" id="info" class="iframe" name="info" seamless="" height="100%" width="100%"></iframe> </div> </div> </div> </div> <!-- /#myModal --> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <p> <a href="http://validator.w3.org/check?uri=http://bootsnipp.com/iframe/8Z7b&ss=1"> <span class="glyphicon glyphicon-check green"></span> HTML<sup>5</sup></a> </p> </div> <!-- /.row --> </div> <!-- /.container -->
body{ background-color:#333; color:#ccc; } .container{ margin-top:60px; padding: 60px; border:10px; border-radius:26px; background: url('http://25.media.tumblr.com/ad80d557aee5736d7b01ca13846781f5/tumblr_n10n5ygMJI1st5lhmo1_1280.jpg'); } /* change standard modal behavior */ .modal-body { height: 600px; overflow: auto; } .modal-backdrop { background-color: #424530; } .modal-backdrop.fade.in { opacity: .8; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76