@charset "UTF-8";
/* css/src/layout_001.css */
/* reset.css */
html, body { margin:0; }
/* layout_design.css */
#wrap {
width:600px; height:auto;
margin:auto;
}
/* #header ==================== */
#header {
width:100%; height:100px;
background-color: #f07;
}
/* #section ==================== */
#section {
width:100%; height:auto;
background-color: #fa0;
}
.sect_01 {
float:left;
width:40%; height:300px;
background-color: #329664;
}
.sect_02 {
float:left;
width:60%; height:300px;
background-color: #555;
}
/* #footer ==================== */
#footer {
width:100%; height:100px;
background-color: #03f;
}
/*
* css에서 width:auto -> 가로크기 100%, - 부모의 크기를 따름.
height:auto -> 자식요소의 크기만큼 - 자식의 크기를 따름.
*/
'coding > css' 카테고리의 다른 글
0515 / float & clear 속성 내용 정리 (0) | 2021.05.15 |
---|---|
0513 / layout.css (float속성 & clear속성) (0) | 2021.05.13 |
0512 / float.css (clearfix, clear:both 개념) (0) | 2021.05.13 |
0511 / layout.css - float와 clear 속성값 (0) | 2021.05.11 |
0506 / basic_code_05_reset.css (0) | 2021.05.07 |