문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:css:css_note:css_flexbox [2021/03/16 11:35] emblim98 |
wiki:css:css_note:css_flexbox [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== CSS Flexbox ====== | ====== CSS Flexbox ====== | ||
| - | <WRAP left notice | + | <WRAP left notice |
| * description : CSS Lists, | * description : CSS Lists, | ||
| * author | * author | ||
| * email : shlim@repia.com | * email : shlim@repia.com | ||
| - | * lastupdate | + | * lastupdate |
| </ | </ | ||
| <WRAP clear></ | <WRAP clear></ | ||
| 줄 10: | 줄 10: | ||
| \\ | \\ | ||
| =====Source of the article==== | =====Source of the article==== | ||
| - | * [[https:// | + | [[https:// |
| - | \\ | + | |
| \\ | \\ | ||
| ======CSS Flexbox====== | ======CSS Flexbox====== | ||
| + | {{: | ||
| + | \\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | < | ||
| + | <html lang=" | ||
| + | |||
| + | < | ||
| + | <meta charset=" | ||
| + | <meta http-equiv=" | ||
| + | <meta name=" | ||
| + | < | ||
| + | < | ||
| + | .flex-container { | ||
| + | display: flex; | ||
| + | background-color: | ||
| + | flex-wrap: nowrap; | ||
| + | } | ||
| + | |||
| + | .flex-container> | ||
| + | background-color: | ||
| + | width: 100px; | ||
| + | margin: 10px; | ||
| + | text-align: center; | ||
| + | line-height: | ||
| + | font-size: 30px; | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | |||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <p>A containr with " | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | \\ | ||
| + | =====CSS Flexbox Layout Module===== | ||
| + | 플렉스박스 레이아웃 모듈 이전에, 4개의 레이아웃 모듈이 있었습니다.\\ | ||
| + | * 웹페이지의 섹션을 위한 Block | ||
| + | * 텍스트를 위한 Inline | ||
| + | * 2차원 테이블 데이터를 위한 Table | ||
| + | * 요소의 위치 명시를 위한 Positioned | ||
| + | 플렉스박스 레이아웃 모듈은 float 또는 positioning을 사용하지 않고 유연한 반응형 레이아웃 구조 설계를 더 쉽게 만듭니다.\\ | ||
| + | \\ | ||
| + | =====Browser Support===== | ||
| + | 플렉스박스 속성을 모든 현대의 브라우저가 지원합니다.(Chrome, | ||
| + | \\ | ||
| + | =====Flexbox Elements===== | ||
| + | 플레스박스 모델 사용을 시작하기 위해서, 먼저 플렉스 컨테이너(flex container)를 정의해야 합니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | < | ||
| + | <html lang=" | ||
| + | |||
| + | < | ||
| + | <meta charset=" | ||
| + | <meta http-equiv=" | ||
| + | <meta name=" | ||
| + | < | ||
| + | < | ||
| + | .flex-container { | ||
| + | /* parent element */ | ||
| + | background-color: | ||
| + | display: flex; | ||
| + | } | ||
| + | |||
| + | .flex-container> | ||
| + | /* direct child elements of the flexible container = flexible itmes */ | ||
| + | border: 2px solid green; | ||
| + | background-color: | ||
| + | margin: 10px; | ||
| + | padding: 20px; | ||
| + | font-size: 30px; | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | <!-- .flex-container> | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <p>A Flexible Layout must have a parent element with the < | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | =====Ref===== | ||
| + | {{: | ||
| | | ||
| {{tag> | {{tag> | ||