-
카테고리
-
세부 분야
자격증 (디자인)
-
해결 여부
미해결
footer 부분이 요번엔 이상합니다. 무엇이 잘못 되었습니까?
22.11.03 04:11 작성 조회수 169
1
footer 부분 전엔 잘 되었는데 요번엔 이상합니다. 무엇이 잘못 되었습니까?
float: left;
box-sizing: border-box;
}
했는데도 가로 배치가 되지 않습니다.
index.html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>JUST 쇼핑몰</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<header>
<div class="header-logo">
<a href="#none">
<img src="images/logo-header.png" alt="header-logo">
</a>
</div>
<div class="navi"></div>
</header>
<div class="slide">
<div></div>
</div>
<div class="items">
<div class="news"></div>
<div class="banner">
<a href="#none">
<img src="images/banner-01.jpg" alt="banner">
</a>
</div>
<div class="shortcut">
<a href="#none">
<img src="images/banner-02.jpg" alt="shortcut">
</a>
</div>
</div>
<footer>
<div class="footer-logo">
<a href="#none">
<img src="images/logo-footer.png" alt="footer-logo">
</a>
</div>
<div class="copyright">
상호 : 엣지컴퍼니 | 대표자 : 홍길동 | 개인정보관리책임자 : 장길산 차장<br>
사업장주소 : 서울특별시 강남구 테헤란로 123-56
</div>
<div class="sns">
<a href="#none">
<img src="images/sns-01.png" alt="sns1">
<img src="images/sns-02.png" alt="sns2">
<img src="images/sns-03.png" alt="sns3">
</a>
</div>
</footer>
</div>
<script src="script/jquery-1.12.4.js"></script>
<script src="script/custom.js"></script>
</body>
</html>
style.css
@charset 'utf-8'; body{ margin: 0; font-size: 15px; background-color: #fff; color: #222328; } a{ color: #222328; text-decoration: none; } .container{ width: 1200px; margin: auto; } header{ height: 100px; } header>div{ height: 100px; } .header-logo{ width: 200px; float: left; } .navi{ width: 600px; float: right; } .slide{} .slide>div{ height: 300px; } .items{ overflow: hidden; } .items>div{ height: 200px; float: left; box-sizing: border-box; } .news{ width: 500px; } .banner{ width: 350px; } .shortcut{ width: 350px; } footer{ overflow: hidden; } .footer>div{ height: 100px; float: left; box-sizing: border-box; } .footer-logo{ width: 200px; } .copyright{ width: 800px; } .sns{ width: 200px; } /* imges&text */ .header-logo,.footer-logo{ line-height: 120px; } .copyright{ padding-top: 30px; text-align: center; }
답변을 작성해보세요.
0
답변 1