Very often we want to align 2 DIVs vertically and middle aligned with each other, like image and div, or 2 DIVs.
How
- Declare the css "display: flex" or "display: inline-flex" at the parent container with "align-items: center"
- Put the items we want to align inside the parent container
Quoting from stackoverflow's answer
References
沒有留言:
張貼留言