position
2022. 10. 2. 20:12
CSS
static, relative, absolute, fixed, sticky 등이 있다 기본적으로 position 은 static 이며, 부모요소에 relative , 자식요소에 absolute 를 주고 사용한다 relatvice 는 상대적인 개념이라 position 을 취해도 크게 변화는 없으며, absolute 의 경우 어디를 부모로 보느냐에 따라 많이 달라진다. 또한 position 속성을 부여하게 되면, left, top, bottom, right, z-index 등을 사용할 수 있게 된다.