Position1 CSS: position (fixed, absolute, relative, static) css에서는 영역의 위치를 지정해주고 싶을때, position을 이용할 수 있다. static : 기본 absolute : 위치 지정 가능 relative : absolute의 기준 fixed : 고정 absolute를 이용해서 위치를 정하고 싶다면, 이렇게 할 수 있다. .box { position: relative; /* absolute의 기준 */ } .box div{ position: absolute; left: 0; /* 왼쪽으로부터 0px */ bottom: 0; /* 아래로부터 0px */ } absolute의 특징 1. 기본으로 display: inline-block이 된다. 2. 높이가 사라지기 때문에 붕 뜬다. 3. 기준인 relative가 없다면, absolute가 아닌 것을 기준으로.. 2020. 6. 17. 이전 1 다음