[CSS] position: static, relative, absolute, fixed
CSS에서 요소들의 배치 방법에 대해 정의합니다. position은 static(기본값), relative, absolute, fixed, sticky로 지정할 수 있습니다. static 기본값, normal flow대로 정의됩니다. top, bottom, left, right, z-index의 영향을 받지 않습니다. relative 엘레멘트가 normal flow로 정의되고 난 후, 자신을 기준으로 top, right, bottom, left 값에 적용을 받습니다. z-index도 적용 됩니다. absolute normal flow에 포함되지 않으며 레이아웃도 차지하지 않습니다. 자신의 조상 중 position 값이 relative, fixed, absolute로 설정된 엘레멘트를 기준으로 top, r..
기술이 된 상상
2021. 4. 26. 17:03