"Text on Image"
Bootstrap 3.3.0 Snippet by pixelangel

<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="image-container"> <img id="image" src="http://www.noao.edu/image_gallery/images/d4/androa.jpg"/> <div class="text"> <h1>header text</h1> <span>price</span> <span>Location</span> <span>days</span> </div> </div>
.image-container{ height: 400px; width: 400px; position: relative; } #image { position: absolute; left: 0; top: 0; } .text { z-index: 100; position: absolute; color: white; font-size: 24px; font-weight: bold; left: 50px; top: 50px; }

Related: See More


Questions / Comments: