<div class="main_container">
<div class="content">
<div class="content_container">
<footer>
<div class="txt_wrap">
<p>상호명: Twitch</p>
<p>대표자명: CEO</p>
<p>주소:San Francisco, California, USA</p>
</div>
<div class="footer_bottom">
<ul>
<li><a href="#">지원팀에 문의</a></li>
<li><a href="#">판매약관</a></li>
<li><a href="#">사업자 정보</a></li>
</ul>
</div>
</footer>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
}
body {
background-color: #0e0e10;
}
ol, ul {
list-style: none;
}
a {
text-decoration: none;
color: #fff;
}
img {
vertical-align: top;
}
input {
outline: none;
border: none;
}
button {
outline: none;
border: none;
background: transparent;
}
h1, h2, h3, h4, h5, h6, p, span, input, button, a {
color: #fff;
}
.btn_purple {
background-color: #9147ff;
color: #fff;
}
.font_purple {
color: #9147ff;
}
/* main - left */
.main_container {
position: relative; /* 3차원 자식들의 크기값을 인식하기 위해서 */
width: 100%;
height: 100%;
min-width: 1340px;
}
/* main - content */
.content {
position: absolute;
/* top과 왼쪽 제외한 전체에 content 영역의 공간을 잡아줌 */
top: 50px;
bottom: 0;
left: 240px;
right: 0;
overflow-y: auto;
}
.content #content_banner {
position: relative;
width: 100%;
height: 350px;
/* 실제 파일에는 배경 이미지 삽입 */
background: grey no-repeat center;
background-size: cover;
}
.content #content_banner .layer {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
top: 0;
left: 0;
}
.content #content_banner .layer .txt_wrap {
position: absolute;
top: 170px;
right: 200px;
}
.content .content_container {
width: 1240px;
margin: 0 auto;
}
/* footer */
footer {
width: 100%;
padding: 80px 0 150px;
}
footer .txt_wrap p {
text-align: center;
font-size: 14px;
}
footer .footer_bottom {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
margin-top: 20px;
}
footer ul {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
footer ul li a {
color: grey;
font-size: 14px;
}
footer ul li a:after {
position: relative;
content: "";
display: inline-block;
width: 1px;
height: 12px;
background-color: grey;
margin: 0 8px;
top: 1px;
}
footer ul li:last-child a:after {
content: none;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.