카테고리 없음
[css] 자식 float 높이, 부모 높이로 잡기
cuveloper
2019. 7. 10. 10:37
자식 float 높이, 부모 높이로 잡기
부모에 clear:both 하면 된다.
ex)
.c_clear {content:""; display:block; clear:both;} (X)
.c_clear:after {content:""; display:block; clear:both;} (O)