본문 바로가기
Site 만들기/Text 유형

텍스트 유형02

by 코터틀 2022. 8. 30.
반응형

사이트 만들기 : 텍스트 유형2

텍스트 유형2 입니다.

HTML

좌측의 header 영역을 두고 우측에 text 영역이 들어가도록 구분하였습니다.

<section id="textType02" class="text__wrap gmark section">
    <div class="container text__inner">
        <article class="text__header">
            <div class="box">Web design</div>
            <h2>자습이 왜 필요한지</h2>
            <p>웹디자인 기능사 필기에 합격하기 위하여 문제를 풀어보기 위한 시간이 필요하지 않을까요?!</p>
        </article>
        <div class="text">
            <article class="text__desc">
                <img src="img/Group 237.svg" alt="icon">
                <h2>자습 유형01</h2>
                <p>내일은 웹디자인기능사 시험을 보는 날 입니다. 같은 반 학우가 시험에 합격했다고 하니, 우리 모두 합격을 위해 기능사 CBT를</p>
            </article>
            <article class="text__desc">
                <img src="img/Group 238.svg" alt="icon">
                <h2>자습 유형02</h2>
                <p>내일은 웹디자인기능사 시험을 보는 날 입니다. 같은 반 학우가 시험에 합격했다고 하니, 우리 모두 합격을 위해 기능사 CBT를</p>
            </article>
            <article class="text__desc">
                <img src="img/Group 239.svg" alt="icon">
                <h2>자습 유형03</h2>
                <p>내일은 웹디자인기능사 시험을 보는 날 입니다. 같은 반 학우가 시험에 합격했다고 하니, 우리 모두 합격을 위해 기능사 CBT를</p>
            </article>
            <article class="text__desc">
                <img src="img/Group 240.svg" alt="icon">
                <h2>자습 유형04</h2>
                <p>내일은 웹디자인기능사 시험을 보는 날 입니다. 같은 반 학우가 시험에 합격했다고 하니, 우리 모두 합격을 위해 기능사 CBT를</p>
            </article>
        </div>
    </div>
</section>

CSS

초기화, 공통부분 css를 제외한 코드입니다.
잊지말고 line-height를 잘 넣어야합니다..!

/* textType */
.text__inner {
    display: flex;
    overflow: hidden;
    justify-content: space-between;
}

.text__header {
    width: 25%;
    height: 500px;
    margin-right: 120px;
}

.text__header .box {
    width: 150px;
    height: 25px;
    background-color: rgba(174, 156, 248, 0.7);
    border-radius: 15px;
    text-align: center;
    line-height: 25px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.text__header>h2 {
    font-size: 50px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
}

.text__header>p {
    font-size: 18px;
    line-height: 1.5;
}

.text {
    width: 77%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.text .text__desc {
    width: 49%;
    height: 200px;
}

.text__desc:hover {
    background: rgba(236, 132, 132, 0.635);
}

.text__desc img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.text__desc h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.text__desc p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}
반응형

'Site 만들기 > Text 유형' 카테고리의 다른 글

텍스트 유형03  (4) 2022.08.30
텍스트 유형01  (7) 2022.08.30

광고 준비중입니다.