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 |
Tags
- innerText
- eas
- es6
- yet
- innerHTML
- react
- HTML
- 커스텀 테마
- nodeValue
- Empty
- node.js
- addEventListener
- ES5
- javascript
- Event
- snyk
- textContent
- UI
- a11y
- Dom
- node
- CSS
- expo
- 컬러 테마
- js
- 빌드 전 점검
- Review
- modal
- eas build
- ui-kitten
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