• 카테고리

    질문 & 답변
  • 세부 분야

    웹 개발

  • 해결 여부

    미해결

before 질문입니다.

21.01.20 18:16 작성 조회수 139

1

.location-inner:before 

여기에 position:absolute를 줬는데

.location-inner에 position:relative 꼭 안 줘도 되는 건가요?

답변 1

답변을 작성해보세요.

2

원래는 .location-inner에  relative를 주어야 .location-inner:before가 정확히 .location-inner 안에 들어오게 하는데 이번에 주지 않은 이유는 . content에 이미 포지션 속성이 있기 때문입니다.

.location-inner가 .content에 가득차고 있기 때문에 주지 않은 겁니다.