<div class="wrapper">
<div class="column cat1">
<div class="info">
<h2>アラン</h2>
<p>(ローラン)</p>
<a href="#">プロフィール</a>
</div>
</div>
<div class="column cat2">
<div class="info">
<h2>アステア</h2>
<p>(ラダトーム)</p>
<a href="#">プロフィール</a>
</div>
</div>
</div>
body {
background: #000;
font-family: "Nico Moji", sans-serif;
}
.column {
height: 100vh;
width: 100%;
text-align: center;
display: flex;
align-items: flex-end;
justify-content: center;
}
.info {
margin-bottom: 10%;
}
h2 {
font-size: 3rem;
}
p {
font-size: 1.5rem;
}
a {
font-size: 2rem;
background: #0bd;
border-radius: 5px;
padding: 10px 20px;
color: #fff;
text-decoration: none;
display: inline-block;
margin-top: 18px;
}
a:hover {
background: #0090aa;
}
.cat1 {
background: url(http://webcreatorbox.com/sample/images/cat1.jpg) no-repeat top center;
background-size: cover;
color: rgba(255,255,255,.7);
}
.cat2 {
background: url(http://webcreatorbox.com/sample/images/cat2.jpg) no-repeat top center;
background-size: cover;
color: rgba(0,0,0,.7);
}
@media all and (min-width: 500px) {
.wrapper {
display: flex;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.