"Image overlay effect"
Bootstrap 3.3.0 Snippet by imsachin

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <title>HTML</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <!--[if IE]> <link href="~/Content/NewHomePage/all-ie-only.css" rel="stylesheet" /> <![endif]--> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="style.css"> </head> <body> <!-- Our Deal --> <section class="container-fluid our-deals"> <div class="row"> <div class="container"> <h3 class="titles"> <strong> Top Deals </strong> </h3> <p class="title-tagline"> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Adipisci quas dolore excepturi iste libero architecto. Error adipisci, totam possimus et nulla voluptatem minus odio cum quasi qui, alias iusto vero. </p> <div class="row"> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="imgBoxs "> <p class="ribs"> Red Fort </p> <div class="img-boxs-img"> <img src="https://bestjquery.com/tutorial/hover-effect/demo147/images/img-2.jpg" alt="image" class="img-circle width100"> </div> <div class="deal-prc-box"> <div class="deal-Ltxt"> <h4 class="mr0"> New York to Delhi </h4> <p class="mr0"> (3 Days and 2 Nights) </p> </div> <div class="deal-Rbtn"> <a href="red-fort-delhi.html" class="btn btn-default">Explore</a> </div> </div> </div> </div> </div> </div> </div> </section> </body> </html>
/* -- our deals -- */ .our-deals .imgBoxs {position:relative; z-index:1; width:100%; margin-bottom: 30px;} .our-deals .ribs {padding: 5px 15px;position: absolute;margin: 0 0px 0px;z-index: 999;font-size: 18px;transform: translate(-50%,-50%);top: 10%;font-weight: bold;left: 50%;text-align: center;color: #000; background-image: linear-gradient(0deg,#c39a03,#ffc700,#e2c14a,#b79002);background-color: #ffc905;text-shadow: 0px 5px 5px rgb(255, 255, 255);-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.2);box-shadow: 0 1px 1px rgba(0,0,0,0.2);border-top-left-radius: 3px;border-top-right-radius: 3px;zoom:1; text-transform: uppercase;} .our-deals .imgBoxs:hover img{transform:scale(1.1);transition:all 0.5s ease-in-out;} .our-deals .imgBoxs .img-boxs-img img {transition:all 0.5s ease-in-out;} /* .our-deals .ribs:before,.our-deals .ribs:after {content:"";position:absolute;z-index:-1;top:100%;left:0;border-width:0 15px 20px 0;border-style:solid;border-color:transparent #b30625;} .our-deals .ribs:after {left:auto;right:0;border-width:0 0 20px 15px;} */ .our-deals .deal-prc-box {position: absolute;z-index: 1;bottom: 6%;transform: translate(-50%,-50%);left: 50%;width: 67%;background-color: rgba(0, 0, 0, 0.65);color: #fff;padding: 10px;} .our-deals .deal-prc-box .deal-Ltxt {float: left;margin-bottom: 0;} .our-deals .deal-prc-box .deal-Rbtn {float: right;margin-bottom: 0;} .our-deals .deal-prc-box .deal-Rbtn .btn-default, .our-deals .deal-prc-box .deal-Rbtn .btn-default:hover, .our-deals .deal-prc-box .deal-Rbtn .btn-default:focus { color: #000;border-radius: 2px;font-weight: 500;border: none;outline: none;font-size: 12px; background-image: linear-gradient(0deg,#c39a03,#ffc700,#e2c14a,#b79002);background-color: #ffc905;} .imgBoxs img{position: relative;} .deal-Ltxt h4{font-size: 14px;} .deal-Ltxt p{font-size: 12px;}

Related: See More


Questions / Comments: