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
November 26, 2019 11:34 pm GMT
Original Link: https://css-tricks.com/the-thought-process-behind-a-flexbox-layout/
The Thought Process Behind a Flexbox Layout
I just need to put two boxes side-by-side and I hear flexbox is good at stuff like that.
Just adding display: flex;
to the parent element lays out the children in a row.
Well, that's cool. I guess I could have floated them, but this is easier.
They should probably take up the full space they have though. Can I just stretch the parent to 100% wide? Well, I can, but that's apparently not going to affect the child elements. … Read article
The post The Thought Process Behind a Flexbox Layout appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/the-thought-process-behind-a-flexbox-layout/
Share this article:
Tweet
View Full Article