<div class="content-area group">
<main class="main-area">
<h2>Main Column Heading</h2>
이미지는 원하는 것으로 넣어도 된다.
픽사베이
언스플래시
img{
max-width: 100%;
height: auto;
}
<div class="image-banner">
<img src="이미지 주소">
<div class="banner-description">
<p>This is a brief description of the image. This is a photograph of a squirel on the train tracks that was taken in Oregon. This squirrel was incredibly brave and enjoyed playing on the tracks.</p>
</div>
</div>
CSS
img{
max-width: 100%;
height: auto;
}
/* 오버레이 */
.image-banner {
position: relative;
}
.image-banner img {
display: block;
}
.banner-description {
position: absolute;
bottom: 0;
left: 0;
color: #FFF;
background-color: rgba(0, 0, 0, .65);
padding: 15px 25px;
}
/* 오버레이 */
.image-banner {
position: relative;
left: 100px;
}