728x90
반응형
웹 디자인 개발자가 아니라 div 요소 정리는 늘 힘들다.
아래 참고.
복붙해서 응용 해려구 기록
<template>
<div id="wrap">
<div class="header"></div>
<div class="aside"></div>
<div class="contents"></div>
<div class="footer"></div>
</div>
</template>
<script>
</script>
<style lang="scss">
#wrap {
width: 100%;
margin: 0 auto;
}
.header {
width: 100%;
height: 150px;
background: #9566cc;
}
.aside {
float: left;
width: 30%;
height: 700px;
background: #7c5772;
}
.contents {
float: left;
width: 70%;
height: 700px;
background: #0300ef;
}
.footer {
clear: both;
width: 100%;
height: 150px;
background: #00ef15;
}
</style>
728x90
반응형
'개발중 > html' 카테고리의 다른 글
CSS를 이용하여 부모 요소의 높이에 자식 요소를 맞추는 방법 (0) | 2021.04.26 |
---|---|
vue 에서 div 에 마우스 hover 순간 - 버튼 만들기 (0) | 2021.04.21 |
람다식 연습 기록 (0) | 2021.02.25 |
router-link css 효과 (0) | 2021.02.02 |
테이블 border 선이 두줄 => 한줄로 바꾸기 (0) | 2021.01.22 |
댓글