An Interest In:
Web News this Week
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
April 5, 2018 01:58 pm GMT
Original Link: https://css-tricks.com/a-quick-way-to-remember-difference-between-justify-content-align-items/
A Quick Way to Remember the Difference Between `justify-content` and `align-items`
I was talking with a pal the other day and moaning about flexbox for the millionth time because I had momentarily forgotten the difference between the justify-content
and align-items
properties.
"How do I center an element horizontally with flex again? I wondered. Well, that was when she gave me what I think is the best shorthand way of remembering how the two work together.
She said that justify-content
positions elements across the horizontal axis because the word itself is longer …
The post A Quick Way to Remember the Difference Between `justify-content` and `align-items` appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/a-quick-way-to-remember-difference-between-justify-content-align-items/
Share this article:
Tweet
View Full Article