728x90
๋ ์ด์์ : ๋ฐฐ๋ ์ ํ01
๋ค์๊ณผ ๊ฐ์ ๋ฐฐ๋ ์ ํ์ ๋ ์ด์์์ ์์ ํด ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
HTML ์์ค
๋ฐฐ๋ ์ ํ์ ์์ฃผ ๊ฐ๋จํฉ๋๋ค. banner__inner ํด๋์ค๋ฅผ ๊ฐ์ง ๋ถ๋ชจ div ๋ฐ์ค์ ๋ฐฑ๊ทธ๋ผ์ด๋๋ก ์ด๋ฏธ์ง๋ฅผ ์ฝ์ ํ๊ณ , ์ ๋ชฉ๊ณผ ํ์ ๋ฉ์์ง๋ฅผ ์์ฑํ๋ฉด ์์ฑ์ ๋๋ค.
<section id="bannerType" class="banner__wrap nexon section">
<h2 class="blind">๋ฐฐ๋ ์์ญ</h2>
<div class="banner__inner">
<h3 class="title">๊ท์ฌ์ด ๋๋</h3>
<p class="desc">
๋ ๋ค์ํ ๋๋์ด๋ ์ ํ๋ธ๋ก ๋ณด์ธ์.
<a href="#" title="์ ํ๋ธ ํ์ด์ง๋ก ์ด๋">yotube.com</a>
</p>
<span class="small">๋ฐฐ๋ ์ ํ01</span>
</div>
</section>
CSS ์์ค
/* bannerType */
.banner__inner {
background-image: url(img/banner01_bg01.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
text-align: center;
padding: 120px 0;
color: black;
}
.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: black;
display: block;
}
.banner__inner .desc a:hover {
text-decoration: underline;
}
.banner__inner .small {
font-size: 16px;
text-decoration: underline;
}
๊ฒฐ๊ณผ
728x90
'WebSite' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ์ ์ฒด ์ฌ์ดํธ ์ ํ01 (11) | 2022.09.14 |
---|---|
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ํธํฐ ์ ํ ๋ ์ด์์01 (3) | 2022.09.05 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ์ฌ๋ผ์ด๋ ์ ํ ๋ ์ด์์01 (4) | 2022.09.05 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ์ด๋ฏธ์ง ํ ์คํธ ์ ํ ๋ ์ด์์01 (7) | 2022.09.01 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ํค๋ ์ ํ ๋ ์ด์์01 (7) | 2022.09.01 |
๋๊ธ