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