https://www.samanthaming.com/pictorials/css-inline-vs-inlineblock-vs-block/
참고한 사이트
inline element는 height, width를 가지지 못한다. CSS로 width, height를 넣어줘도 동작하지 않는다. 단, img의 경우는 width, height를 설정해줄 수 있다.
'Etc. > CSS' 카테고리의 다른 글
[CSS] margin collapsing (0) | 2021.11.11 |
---|---|
[CSS] flex (0) | 2021.11.06 |
[CSS] 선택자 우선순위 계산 (0) | 2021.11.03 |
[CSS] 가상 클래스(Pseudo-class) vs 가상 요소(Pseudo-element) (0) | 2021.11.03 |
[CSS] float (0) | 2021.10.29 |
댓글