Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<article class="featured">
  <img class="bg-featured" src="http://placehold.it/1200x400"></img>
  <div class="overlay"></div>
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="featured-excerpt">
                <div class="meta">
                  <div class="category">Watch</div>
                  <ul class="tags">
                  <li>Sustainability, Global, Learning</li>
                  </ul>
                </div>
                <div class="content">
                   <h1 class="title">Title</h1>
                   <p class="info">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                   tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                   quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                   consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                   cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                   proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                   <div class="sponsored">Sponsored content:</div>
                </div>
               
              </div>
              </div>
              
            </div>
          </div>
      </article>
</body>
</html>
 
article.featured { 
    position:relative;
    max-height:400px;
    overflow:hidden;
}
img.bg-featured {
    width:100%;
    height:400px;
    position:relative;
}
.featured-excerpt { 
    position:absolute;
    bottom:0;
}
.featured-excerpt .content {
    background:black;
}
.overlay {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0, 0, 0, 0.63);
}
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers