HTML code
This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.2.0 included, to get the result that you can see in the preview selection
Download<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Proofs</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container bootstrap snippets bootdey">
<h1 class="text-center">Ask Me Questions On Twitter</h1>
<div class="twitter">
<a href="https://twitter.com/TweetOmarNow" class="twitter-follow-button" data-show-count="false" data-lang="en" data-size="large">Questions</a>
</div>
<h1 class="text-center"><small>Return to <a href="/">www.OmarHabash.com</a></small> </h1>
<hr>
<br>
<ul class="list-inline text-center">
<li><a href="#g-site1">CloudMatrix</a></li>
<li><a href="#g-site2"> | Nova Dental</a></li>
</ul>
<div class="row">
<!-- content -->
<br>
<br>
<!--=================================================== site1 ===================================================-->
<div id="g-site1" class="col-xs-12">
<div class="demo-container">
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#site1">
<i class="fa fa-search-plus"></i>
</button>
<div class="mac">
<img class="img-responsive" src="http://omarhabash.com/sites/assets/img/sites/mac.png" alt="" />
<div class="screen">
<img class="img-responsive" src="http://omarhabash.com/sites/assets/img/sites/site1.jpg" alt="" />
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="site1" tabindex="-1" role="dialog" aria-labelledby="site1Label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content1">
<div class="modal-body">
<img class="img-responsive site" src="http://omarhabash.com/sites/assets/img/sites/site1.jpg" alt="">
</div>
</div>
</div>
</div>
<!--=================================================== site1 END ===================================================-->
<!--=================================================== site2 ===================================================-->
<div id="g-site2" class="col-xs-12">
<div class="demo-container">
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#site2">
<i class="fa fa-search-plus"></i>
</button>
<div class="mac">
<img class="img-responsive" src="http://omarhabash.com/sites/assets/img/sites/mac.png" alt="" />
<div class="screen">
<img class="img-responsive" src="http://omarhabash.com/sites/assets/img/sites/site2.jpg" alt="" />
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="site2" tabindex="-1" role="dialog" aria-labelledby="site2Label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content1">
<div class="modal-body">
<img class="img-responsive site" src="http://omarhabash.com/sites/assets/img/sites/site2.jpg" alt="">
</div>
</div>
</div>
</div>
<!--=================================================== site1 END ===================================================-->
<!-- content END -->
</div>
</div>
</body>
</html>
CSS code
This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.2.0 included, to get the result that you can see in the preview selection
Downloadbody {padding: 50px;} /* demo only */
img.site {
border: 4px solid #ccc;
}
.demo-container {
overflow: hidden;
position: relative;
}
.mac {
position: relative;
margin: -5.3% -20.5% 0 -18.5%; /* demo only--accounts for image whitespace */
}
.screen {
position: absolute;
top: 9%; /* demo only--accounts for image whitespace */
right: 17%; /* demo only--accounts for image whitespace */
left: 15.6%; /* demo only--accounts for image whitespace */
height: 58%;
overflow: auto;
}
button.btn.btn-primary.btn-lg {
/* margin-left: 9.9em; */
/* margin-top: 26.5em; */
position: absolute;
z-index: 1;
bottom: 25%;
left: 0;
/* width: 9%; */
margin-left: 47%;
box-shadow: 1px 1px 1px;
}
.twitter {
width: 17%;
margin: 0 auto;
}
About this bootstrap example/template
This example/template, scrollspy web previewer, was published on Aug 28th 2014, 09:43 by omarhab and it is free.
We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.
We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.
This code example currectly have 2.7K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 3.2.0
<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script>
This code example is based on bootstrap 3.2.0 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working