Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- javascript
- modal
- eas
- snyk
- UI
- Review
- 앱 마케팅 전략
- react
- Empty
- 커스텀 테마
- Dom
- yet
- addEventListener
- innerText
- a11y
- ES5
- node
- 앱 시장 조사
- HTML
- es6
- Event
- nodeValue
- expo
- textContent
- 빌드 전 점검
- innerHTML
- js
- node.js
- eas build
- CSS
Archives
- Today
- Total
the murmurous sea
CSS: inline-block 본문
masonry layout
<figure>
<img src="image.jpg">
<figcaption>image title</figcaption>
</figure>
When setting the masonry layout, <img> and <figcaption> are separated when the content overflows to the next column.
To prevent this,
the outer section <figure> that surrounds <img> and <figcaption> should have this value:
display: inline-block
"Compared to display: block, the major difference is that display: inline-block does not add a line-break after the element, so the element can sit next to other elements."
from:
'#dev > 개념정리' 카테고리의 다른 글
Poptrox (0) | 2020.04.13 |
---|---|
@-ms-viewport {width: device-width;} (0) | 2020.04.13 |
CSS: flexbox (0) | 2020.04.07 |
CSS: em vs. rem (0) | 2020.04.06 |
CSS: alignment (0) | 2020.04.04 |
Comments