일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- confirm()
- createElement
- React
- Grid
- variables
- grid-row-start
- css#cascading#display#block#inline
- className
- relative
- localStorage
- border-style
- foreach()
- package.json
- valuable
- prompt()
- react-hook-form
- mongodb
- grid-column-end
- javascipt
- javascript
- var
- grid-template-areas
- collapsing-margins
- grid-column-start
- scope
- classList
- python #qqplot #qq-plot #code
- box-shadow
- gird-row-end
- CSS
- Today
- Total
목록CSS (22)
data life

Margin : box의 border(경계) 바깥 공간 margin : 10px(상하) 20px(좌우) / (상)(우)(하)(좌)↩️시계방향 or margin-top/bottom/left/right Collapsing Margins : 상하 margin이 경우에 따라 제일 큰 여백의 크기를 가진 단일 여백으로 결합되는 현상 : 좌우 margin은 상관 없음 MDN 참조 1. 인접 형제 박스 겹쳐진 두 마진 값을 비교해서 더 큰 마진 값으로 상쇄 또는, 겹쳐진 두 마진 값이 같을 경우 중복을 상쇄 2. 빈 블록 height / min-height / padding / border 상하로 늘어나는 속성을 주지 않음 내부 inline 콘텐츠가 존재하지 않음 3. 부모와 자식 마진이 겹칠 때 부모의 margin..

CSS selector { property : property-value; }; : Cascading Style Sheet 위 -> 아래로 차례대로 적용 결국 맨 마지막에 있는 코드가 가장 마지막에 적용됨 Display Block : width, height, margin, padding, border 등의 속성이 있음 대표 태그 Inline ( in the same line) : width와 height 속성 무시 : margin과 padding 좌우만 반영 대표 태그 Inline-block "block + in the same line" : width와 height 속성 가짐 : margin 상하좌우 가능 but, 잘 이용하지 않음 -> 사이의 알 수 없는 빈 공간 발생 -> 정해진 형식이 없음 ->..