Block with Full-size Background Image

Responsive article overview widget/block/card with full-size background image

Below you can find an example of responsive content block with full-size background image. This block can be a part of articles overview page, related content area or any other place where you need such content structure. It can be used together with any HTML/CSS Framework, like Twitter Bootstrap, Zurb Foundation, Skeleton and others.

All fields below are editable. You can experiment with the code and see the result instantly:
<div class="container">
<div class="fbg-block" style="background-image: url(/images/resort-450-600.png)">
<div class="block-content">
<a class="category" href="#">Travel</a>
<div class="title-container">
<h2 class="block-title">
<a href="">Best All-Inclusive Travel Resorts of 2025</a>
</h2>
<div class="time"><i class="icon-clock"></i> 1 hour ago</div>
</div>
</div>
</div>
</div>
HTML
@charset "UTF-8";

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');

@font-face {
font-family: "content-blocks";
src: url("/fonts/content-blocks.eot");
src: url("/fonts/content-blocks.eot?#iefix") format("embedded-opentype"),
url("/fonts/content-blocks.woff") format("woff"),
url("/fonts/content-blocks.ttf") format("truetype"),
url("/fonts/content-blocks.svg#content-blocks") format("svg");
font-weight: normal;
font-style: normal;
}

[data-icon]:before {
font-family: "content-blocks" !important;
content: attr(data-icon);
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
font-family: "content-blocks" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-clock:before {
content: "\64";
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Layout */

body {
font-family: 'Montserrat', sans-serif;
background: #f1f1f1;
}

.container {
padding: 0 20px;
max-width: 300px;
margin: 30px auto 0;
}

/* Block Styles */

.fbg-block {
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
margin-bottom: 30px;
padding: 25px 25px;
font-size: 15px;
color: #fff;
line-height: 23px;
background-position: center center;
background-size: cover;
position: relative;
height: 360px;
}

.fbg-block:after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
border-radius: 8px;
}

.fbg-block .block-content {
position: relative;
z-index:1;
height: 100%;
}

.fbg-block .category {
text-transform: uppercase;
color: #fff;
font-size: 9px;
letter-spacing: 2px;
text-decoration: none;
display: inline-block;
border: 1px solid rgba(255,255,255, 0.5);
border-radius: 13px;
padding: 1px 10px;
}

.fbg-block .title-container {
position: absolute;
bottom: 0;
}

.fbg-block .block-title a {
font-size: 15px;
color: #fff;
text-decoration: none;
}

.fbg-block .time {
color: #fff;
display: inline-block;
vertical-align: middle;
margin-top: 9px;
font-size: 12px;
}

.fbg-block .time i {
display: inline-block;
vertical-align: middle;
margin-top: 2px;
}
CSS
Browser support:
           
8+