<div class="movie-card">
<div class="container">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_cover.jpg" alt="cover" class="cover" /></a>
<div class="hero">
<div class="details">
<div class="title1">The Hobbit <span>PG-13</span></div>
<div class="title2">The Battle of the Five Armies</div>
<fieldset class="rating">
<input type="radio" id="star5" name="rating" value="5" /><label class = "full" for="star5" title="Awesome - 5 stars"></label>
<input type="radio" id="star4half" name="rating" value="4 and a half" /><label class="half" for="star4half" title="Pretty good - 4.5 stars"></label>
<input type="radio" id="star4" name="rating" value="4" checked /><label class = "full" for="star4" title="Pretty good - 4 stars"></label>
<input type="radio" id="star3half" name="rating" value="3 and a half" /><label class="half" for="star3half" title="Meh - 3.5 stars"></label>
<input type="radio" id="star3" name="rating" value="3" /><label class = "full" for="star3" title="Meh - 3 stars"></label>
<input type="radio" id="star2half" name="rating" value="2 and a half" /><label class="half" for="star2half" title="Kinda bad - 2.5 stars"></label>
<input type="radio" id="star2" name="rating" value="2" /><label class = "full" for="star2" title="Kinda bad - 2 stars"></label>
<input type="radio" id="star1half" name="rating" value="1 and a half" /><label class="half" for="star1half" title="Meh - 1.5 stars"></label>
<input type="radio" id="star1" name="rating" value="1" /><label class = "full" for="star1" title="Sucks big time - 1 star"></label>
<input type="radio" id="starhalf" name="rating" value="half" /><label class="half" for="starhalf" title="Sucks big time - 0.5 stars"></label>
</fieldset>
<span class="likes">109 likes</span>
</div> <!-- end details -->
</div> <!-- end hero -->
<div class="description">
<div class="column1">
<span class="tag">action</span>
<span class="tag">fantasy</span>
<span class="tag">adventure</span>
</div> <!-- end column1 -->
<div class="column2">
<p>Bilbo Baggins is swept into a quest to reclaim the lost Dwarf Kingdom of Erebor from the fearsome dragon Smaug. Approached out of the blue by the wizard Gandalf the Grey, Bilbo finds himself joining a company of thirteen dwarves led by the legendary warrior, Thorin Oakenshield. Their journey will take them into the Wild; through... <a href="#">read more</a></p>
<div class="avatars">
<a href="#" data-tooltip="Person 1" data-placement="top">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_avatar1.png" alt="avatar1" />
</a>
<a href="#" data-tooltip="Person 2" data-placement="top">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_avatar2.png" alt="avatar2" />
</a>
<a href="#" data-tooltip="Person 3" data-placement="top">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_avatar3.png" alt="avatar3" />
</a>
</div> <!-- end avatars -->
</div> <!-- end column2 -->
</div> <!-- end description -->
</div> <!-- end container -->
</div> <!-- end movie-card -->
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700);
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
*, *:before, *:after {
box-sizing: border-box;
}
body {
background: #43423E;
}
a {
text-decoration: none;
color: #5C7FB8
}
a:hover {
text-decoration: underline;
}
.movie-card {
font: 14px/22px "Lato", Arial, sans-serif;
color: #A9A8A3;
padding: 40px 0;
}
.container {
margin: 0 auto;
width: 780px;
height: 640px;
background: #F0F0ED;
border-radius: 5px;
position: relative;
}
.hero {
height: 342px;
margin:0;
position: relative;
overflow: hidden;
z-index:1;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.hero:before {
content:'';
width:100%; height:100%;
position:absolute;
overflow: hidden;
top:0; left:0;
background:red;
background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_bg.jpg");
z-index:-1;
transform: skewY(-2.2deg);
transform-origin:0 0;
//chrome antialias fix
-webkit-backface-visibility: hidden;
}
.cover {
position: absolute;
top: 160px;
left: 40px;
z-index: 2;
}
.details {
padding: 190px 0 0 280px;
.title1 {
color: white;
font-size: 44px;
margin-bottom: 13px;
position: relative;
span {
position: absolute;
top: 3px;
margin-left: 12px;
background: #C4AF3D;
border-radius: 5px;
color: #544C21;
font-size: 14px;
padding: 0px 4px;
}
}
.title2 {
color: #C7C1BA;
font-size: 23px;
font-weight: 300;
margin-bottom: 15px;
}
.likes {
margin-left: 24px;
}
.likes:before {
content: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/icon_like.png");
position: relative;
top: 2px;
padding-right: 7px;
}
}
.description {
bottom: 0px;
height: 200px;
font-size: 16px;
line-height: 26px;
color: #B1B0AC;
}
.column1 {
padding-left: 50px;
padding-top: 120px;
width: 220px;
float: left;
text-align: center;
}
.tag {
background: white;
border-radius: 10px;
padding: 3px 8px;
font-size: 14px;
margin-right: 4px;
line-height: 35px;
cursor: pointer;
}
.tag:hover {
background: #ddd;
}
.column2 {
padding-left: 41px;
padding-top: 30px;
margin-left: 20px;
width: 480px;
float: left;
}
.avatars {
margin-top: 23px;
img {
cursor: pointer;
}
img:hover {
opacity: 0.6;
}
a:hover {
text-decoration: none;
}
}
//star rating stuff via: https://codepen.io/jamesbarnett/pen/vlpkh/
fieldset, label { margin: 0; padding: 0; }
/****** Style Star Rating Widget *****/
.rating {
border: none;
float: left;
}
.rating > input { display: none; }
.rating > label:before {
margin: 5px;
margin-top: 0;
font-size: 1em;
font-family: FontAwesome;
display: inline-block;
content: "\f005";
}
.rating > .half:before {
content: "\f089";
position: absolute;
}
.rating > label {
color: #ddd;
float: right;
}
/***** CSS Magic to Highlight Stars on Hover *****/
.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { color: #FFD700; } /* hover previous stars in list */
.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label { color: #FFED85; }
//tooltip stuff via: https://codepen.io/peiche/pen/JaftA
a[data-tooltip] {
position: relative;
}
a[data-tooltip]::before,
a[data-tooltip]::after {
position: absolute;
display: none;
opacity: 0.85;
}
a[data-tooltip]::before {
/*
* using data-tooltip instead of title so we
* don't have the real tooltip overlapping
*/
content: attr(data-tooltip);
background: #000;
color: #fff;
font-size: 13px;
padding: 5px;
border-radius: 5px;
/* we don't want the text to wrap */
white-space: nowrap;
text-decoration: none;
}
a[data-tooltip]::after {
width: 0;
height: 0;
border: 6px solid transparent;
content: '';
}
a[data-tooltip]:hover::before,
a[data-tooltip]:hover::after {
display: block;
}
/** positioning **/
/* top tooltip */
a[data-tooltip][data-placement="top"]::before {
bottom: 100%;
left: 0;
margin-bottom: 40px;
}
a[data-tooltip][data-placement="top"]::after {
border-top-color: #000;
border-bottom: none;
bottom: 50px;
left: 20px;
margin-bottom: 4px;
}
View Compiled
This Pen doesn't use any external CSS resources.