๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Site ์ œ์ž‘

07. ๋ฐฐ๋„ˆ ์œ ํ˜• 1

by Youcodein 2022. 9. 6.
728x90
๋ฐ˜์‘ํ˜•

๋ฐฐ๋„ˆ ์œ ํ˜•

์›น์‚ฌ์ดํŠธ ๋ฐฐ๋„ˆ ์œ ํ˜•์ž…๋‹ˆ๋‹ค.

HTML

html ์†Œ์Šค์ž…๋‹ˆ๋‹ค.

<body>
    <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="์ƒˆ ํŽ˜์ด์ง€ ์—ด๋ฆผ">๊ทธ๊ฑฐ์–ด์ผ€ํ•˜๋Š”๊ฑด๋ฐ</a>
            </p>
            <span> class="small">๋ฐฐ๋„ˆ ์œ ํ˜•01</span>
        </div>
    </section>
</body>

CSS

css ์†Œ์Šค์ž…๋‹ˆ๋‹ค.

/* banner */
.banner__inner {
    background-image: url(../bannerType/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;
}

/* ๋ธ”๋ผ์ธ๋“œ ํšจ๊ณผ */

.blind {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
}
728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€