"Background Image Overlay"
Bootstrap 3.3.0 Snippet by angelcabrera

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <div class="container bg-overlay"> <div class="row text-center"> <h1>This is a beautiful background image<br> with a transparent overlay.</h1> <h4>You can just use the "<strong>.bg-overlay</strong>" class on any container/element,<br> and specify the image you want to use and its height.</h4> <br><br> <button type="button" class="btn btn-primary btn-lg">Get Started</button> </div> </div> <br><br> <div class="container bg-no-overlay"> <div class="row text-center"> <h1>This is a background image<br> with NO overlay.</h1> <br><br> <button type="button" class="btn btn-primary btn-lg">Get Started</button> </div> </div>
.bg-overlay { background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url("https://unsplash.imgix.net/photo-1416339442236-8ceb164046f8?q=75&fm=jpg&s=8eb83df8a744544977722717b1ea4d09"); background-repeat: no-repeat; background-size: cover; background-position: center center; color: #fff; height: 450px; padding-top: 50px; } .bg-no-overlay { background: url("https://unsplash.imgix.net/photo-1416339442236-8ceb164046f8?q=75&fm=jpg&s=8eb83df8a744544977722717b1ea4d09"); background-repeat: no-repeat; background-size: cover; background-position: center center; color: #fff; height: 450px; padding-top: 50px; }

Related: See More


Questions / Comments: