CSS after 요소 예제
페이지 정보
본문
css 에서 float 를 사용하다 보면, 블럭 요소가 자리를 제대로 차지하지 못할 때가 있다 .
이때, 아래처럼 블럭 요소에 after 가상 선택자를 활용해서 block 공간을 확보할 수 있다.
[code]
#current_connect:after {display:block;visibility:hidden;clear:both;content:""}
[/code]
이때, 아래처럼 블럭 요소에 after 가상 선택자를 활용해서 block 공간을 확보할 수 있다.
[code]
#current_connect:after {display:block;visibility:hidden;clear:both;content:""}
[/code]
추천0
댓글목록
등록된 댓글이 없습니다.