JSFiddle - React, Tailwind, and code Playground
by darcyclarke
HTML
<div class="container">
<div class="book">
<p>Malgun Gothic</p>
<h3>이 집 안에있는 모든 사람과 사랑</h3></div>
<div class="book nanum">
<p>NanumGothic_Coding</p>
<h3>이 집 안에있는 모든 사람과 사랑</h3></div>
<div class="clearBoth"></div>
</div>
CSS
.container {
width: 420px;
margin: 50px auto;
font-family: sans-serif;
}
.clearBoth {
clear: both;
}
.book {
background: url(http://www.thinkwithgoogle.com/insights/images/main/spriteLibrary.png) no-repeat -14px -20px;
padding: 20px 0 0 0;
width: 190px;
height: 230px;
margin-right: 20px;
display: block;
float: left;
}
.book p {
font-size: 10px;
font-style: italic;
text-align: center;
color: #fff;
margin: 0 0 30px 0;
}
.book h3 {
margin: 0 auto 0;
text-align: center;
width: 140px;
display: block;
font-family: "Malgun Gothic", sans-serif;
color: #fff;
}
.book.nanum h3 {
font-family: "NanumGothic", sans-serif;
}