728x90
๐๐ป SITE | banner ์ ํ ๋ฝ๊ฐ๊ธฐ
โ๏ธ CSS Point
โ๏ธ background: url(../img/slider_bg01.jpg) no-repeat center / cover;
๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง url ํ์์ผ๋ก ์ฝ์
, ๋ฐ๋ณต์์ด ๊ฐ์ด๋ฐ ์ ๋ ฌ / ์ฌ์ด์ฆ์ ๋ง๋๋ก cover
/* bannerType */
.banner__inner {
background-image: url(../img/banner_bg01.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
text-align: center;
padding: 120px 0;
color: #fff;
}
.banner__title {
font-size: 50px;
line-height: 1;
font-weight: 300;
margin-bottom: 40px;
}
.banner__desc {
font-size: 24px;
line-height: 1.5;
font-weight: 300;
margin-bottom: 70px;
}
.banner__desc a {
color: #fff;
display: block;
}
.banner__desc a:hover {
text-decoration: underline;
}
.banner__small {
font-size: 16px;
text-decoration: underline;
}
โ๏ธ HTML Point
โ๏ธ ์น ํ์ค์ ๋ง์ถ๊ธฐ ์ํด ์๋ฉํฑ ํ๊ทธ ์ฌ์ฉํ๊ธฐ
โ๏ธ img์ alt ์ค๋ช
์ span์ผ๋ก ๋์ ํ๊ณ ir ํจ๊ณผ ์ฌ์ฉํ๊ธฐ
<body>
<section id="sliderType" class="slider__wrap">
<h2 class="blind">์ฌ๋ผ์ด๋ ์์ญ</h2>
<div class="slider__inner">
<div class="slider">
<div class="slider__img">
<div class="desc">
<span>INTERIOR</span>
<h3>HOME DESIGN</h3>
<p>
๊ฐ์กฑ ๊ตฌ์ฑ์์ ๋ผ์ดํ ์คํ์ผ๊ณผ ์์ ๊ณต๊ฐ์ ํ๋ณดํ๋<br>
๋ค์ํ ํ๋์์ธ์ ๋ง๋๋ณด์ธ์.
</p>
<div class="btn">
<a href="#">์์ธํ ๋ณด๊ธฐ</a>
<a href="#" class="black">์ฌ์ดํธ ๋ณด๊ธฐ</a>
</div>
</div>
</div>
<div class="slider__arrow">
<a href="#" class="left"><span class="ir">์ด์ ์ด๋ฏธ์ง</span></a>
<a href="#" class="right"><span class="ir">๋ค์ ์ด๋ฏธ์ง</span></a>
</div>
<div class="slider__dot">
<a href="#" class="dot active"><span class="ir">1</span></a>
<a href="#" class="dot"><span class="ir">2</span></a>
<a href="#" class="dot"><span class="ir">3</span></a>
<a href="#" class="play"><span class="ir">ํ๋ ์ด</span></a>
<a href="#" class="stop"><span class="ir">์ ์ง</span></a>
</div>
</div>
</div>
</section>
</body>
โ๏ธ ๊ฒฐ๊ณผ ํ์ธํ๊ธฐ
CSS ๊ณตํต ์์๋ ์๋ ์๋ณธ ์์ค ๋ณด๊ธฐ๋ฅผ ํตํด ํ์ธํด๋ณด์ธ์ !
๋๊ธ