• 카테고리

    질문 & 답변
  • 세부 분야

    자격증 (디자인)

  • 해결 여부

    미해결

e유형하는데 선생님이랑 같이했는데 vh넣고 칸이 밑으로 크게보여요..

23.08.19 18:55 작성 조회수 151

1

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>e-1레이아웃연습</title>
    <link rel="stylesheet" href="css/e-1.css">
</head>
<body>
    <div class="container">
        <div class="main-content">
            <div class="left">
            <header>
                <div class="header-logo"></div>
                <div class="navi"></div>
                <div class="spot-menu"></div>
            </header>
            </div>
            <div class="center">
                <div class="shortcut"></div>
                <div class="news"></div>
                <div class="gallery"></div>
                <div class="slide-banner"></div>
            </div>
            <div class="right">
                <div class="slide-image"></div>
            </div>
        </div>
        <footer>
            <div class="footer-logo"></div>
            <div class="footer-content">
                <div class="footer-link"></div>
                <div class="copyright"></div>
            </div>
        </footer>
    </div>
</body>
</html>

@charset "UTF-8";

body{
    margin: 0;
    background-color: #fff;
    color: #333;
}
a{
    list-style: none;
    text-decoration: none;
    color: #333;
}

.container{}
.main-content{
    display: flex;
}
.main-content > div{
    border: 1px solid #000;
    height: 800px;
}
.left{
    width: 200px;
}
.center{
    width: 400px;
}
.right{
    flex: 1;
}

/*header*/
header{}
header > div{
  border: 1px solid red;
}
.header-logo{
    height: 100px;
}
.navi{
    height: 400px;
}
.spot-menu{
    height: 50px;
}
/*slide*/
.slide{}
.slide-image{
    border: 5px solid green;
    height: calc(100vh - 120px);
}
/*shortcut*/
.shortcut{
    border: 1px solid #000;
    height: 150px;
}
/*news-gallery*/
.news{
      border: 1px solid #000;
      height: 250px;
}
.gallery{
    border: 1px solid #000;
    height: 250px;
}

.slide-banner{
    border: 1px solid #000;
    height: 150px;
}
/*footer*/
footer{
    display: flex;
}
footer >div{
    border: 1px solid pink;
    height: 120px;
}
.footer-logo{
    width: 200px;
}
.footer-content{
    flex: 1;
}
.footer-content > div{
    border: 1px solid blue;
    height: 60px;
}
.footer-link{}
.copyright{}

e문의.jpg선생님이랑 같이했는데 vh넣고 칸이 밑으로 크게보여요.. 뭐가잘못된걸까요 ....????ㅠㅠㅠ

답변 2

·

답변을 작성해보세요.

0

jkjk7088님의 프로필

jkjk7088

질문자

2023.08.20

아 네 감사합니다!

0

코드복사해서 테스트해 보니 화면과 같은 현상 안보이고 잘 나옵니다.