728x90
๋ฐ์ํ
โญ๏ธ ๋ฐฐ๋ ์ ํ 01 โญ๏ธ
01. ๋ ์ด์์ ๊ตฌ์ํ๊ธฐ
๋ ์ด์์์ ๊ตฌ์ํ ๋๋, ์ค์ผ์นํ๋ฉด์ ์ธ๋ถ ๋ด์ฉ์ ์ ๋ณด๊น์ง ๊ตฌ์ฒด์ ์ผ๋ก ๊ณํํฉ๋๋ค.
02. ์์(div) ๋ง๋ค๊ธฐ : <body>
section ์ ์๋ฉํฑ ๋งํฌ์
ํ๊ณ , id ๋ก ์ด๋ฆ์ ์ง์ด์ค๋๋ค.
์ค๊ฐ ์ค๊ฐ์ ๋ธ๋ผ์ฐ์ ๋ฅผ ์ดํด๋ณด๋ฉฐ ์ ๋ง๋ค์ด์ง๊ณ ์๋์ง ํ์ธํ๋ ๊ณผ์ ์ด ํ์ํฉ๋๋ค.
<section id="bannerType" class="banner__wrap nexon">
<h2 class="blind">๋ฐฐ๋ ์์ญ</h2>
<div class="banner__inner">
<h3 class="title">์กฐ๋ช
๋์์ธ</h3>
<p class="desc">
๋ ๋ค์ํ ์กฐ๋ช
๋์์ธ์ ์ดํด๋ณด์ธ์
<a href="#" title="์ ํ๋ธ ํ์ด์ง๋ก ์ด๋">http://www.youtube.com</a>
</p>
<span class="small">๋ฐฐ๋ ์ ํ 01</span>
</div>
</section>
02. style(css) ์ค์ ํ๊ธฐ : <style>
/* bannerType */
.banner__inner {
background-image: url(../site01/assets/img/banner_bg01.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
text-align: center;
padding: 120px 0;
color: #fff;
}
.banner__inner .title {
font-size: 50px;
line-height: 1;
font-weight: 300;
margin-bottom: 40px;
}
.banner__inner .desc {
font-size: 24px;
line-height: 1.5;
font-weight: 300;
margin-bottom: 70px;
}
.banner__inner .desc a {
color: #fff;
display: block;
}
.banner__inner .desc a:hover {
text-decoration: underline;
}
.banner__inner .small {
font-size: 16px;
text-decoration: underline;
}
03. ๊ฒฐ๊ณผ๋ณด๊ธฐ
728x90
๋ฐ์ํ
'CSS > Layout_Site' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ฌ์ดํธ ๋ง๋ค๊ธฐ (2) | 2022.09.14 |
---|---|
ํธํฐ ์ ํ (1) (2) | 2022.09.06 |
์ฌ๋ผ์ด๋ ์ ํ (1) (2) | 2022.09.06 |
ํค๋ ์ ํ (1) (2) | 2022.09.02 |
์ด๋ฏธ์ง ํ ์คํธ ์ ํ (1) (3) | 2022.09.02 |
๋๊ธ