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
- node.js
- yet
- react
- css:position
- nodeValue
- beforeinput
- es6
- keyboardEvent
- Empty
- addEventListener
- Event
- innerText
- js
- textContent
- HTML
- innerHTML
- Temporal dead zone
- UI
- for loop
- keyup
- Dom
- modal
- ES5
- TypingEffect
- Review
- CSS
- a11y
- dotenv
- javascript
- node
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