CSS 행 간격 속성
예시
그리드 행 사이에 50픽셀 간격을 지정합니다.
div
{
display: grid;
row-gap: 50px;
}
아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.
정의 및 사용
속성 은 row-gap
그리드 행 사이의 간격을 지정합니다.
이 row-gap
속성은 이전에 로 알려졌습니다 .
grid-row-gap
기본값: | 정상 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 예. 애니메이션 가능 에 대해 읽기 |
버전: | CSS 상자 정렬 모듈 레벨 3 |
자바스크립트 구문: | 개체 .style.rowGap="50px" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
row-gap (in Grid) | 66 | 16 | 61 | 12.1 | 53 |
row-gap (in Flexbox) | 84 | 84 | 63 | Not supported | 70 |
CSS 구문
row-gap: length|normal|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
length | A specified length or % that will set the gap between the rows | |
normal | Default value. Specifies a normal gap between the rows | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 그리드 레이아웃
CSS 참조: gap 속성
CSS 참조: column-gap 속성