Flex is becoming more and more irrelevant to do layouts. CSS Grid is really solid and it works well on responsive. The possibilities are endless.
CSS: Absolutely positioning things relatively
11–20 of 42 posts
Re: CSS: Absolutely positioning things relatively
#12Flex is becoming more and more irrelevant to do layouts. CSS Grid is really solid and it works well on responsive. The possibilities are endless.
For page layout sure, but for stuff like a unknown-length sequence of blocks/tiles/cards of mixed size flexbox is getting more useful, especially now grid-gap is just gap and works on flexbox too.
Re: CSS: Absolutely positioning things relatively
#13Flex is becoming more and more irrelevant to do layouts. CSS Grid is really solid and it works well on responsive. The possibilities are endless.
Grid is good for making grids.
Flex is good for creating flows of content, like a where all childs has display:inline-block. It supports wrapping when content can't be on a single line.
Re: CSS: Absolutely positioning things relatively
#14Flex is becoming more and more irrelevant to do layouts. CSS Grid is really solid and it works well on responsive. The possibilities are endless.
Re: CSS: Absolutely positioning things relatively
#15Flex is becoming more and more irrelevant to do layouts. CSS Grid is really solid and it works well on responsive. The possibilities are endless.
Flex and grid are 2 different domains. Grid is good for making grids. Flex is good for creating flows of content, like a where all childs has display:inline-block. It supports wrapping when content can't be on a single line.
Re: CSS: Absolutely positioning things relatively
#16Earlier quoted context omitted.
Flex and grid are 2 different domains. Grid is good for making grids. Flex is good for creating flows of content, like a where all childs has display:inline-block. It supports wrapping when content can't be on a single line.
Exactly. But we came from using Flex as the defacto system to do layouts and more, now with CSS-Grid it does make sense to use flex for what it was meant for.
Re: CSS: Absolutely positioning things relatively
#17This approach is over-engineered to say the least… You can implement such a layout without using Grid Layout and using just Flex Layout. Also with some min-/max-width tricks you can also completely avoid having media queries in there… For beginners in HTML/CSS this approach is absolutely distracting IMHO.
> You can implement such a layout without using Grid Layout and using just Flex Layout IMO Grid is actually simpler than Flex. Once IE11 is out of the picture, I think it might be worth considering teaching CSS beginners using a Grid-first approach.
Re: CSS: Absolutely positioning things relatively
#18This approach is over-engineered to say the least… You can implement such a layout without using Grid Layout and using just Flex Layout. Also with some min-/max-width tricks you can also completely avoid having media queries in there… For beginners in HTML/CSS this approach is absolutely distracting IMHO.
> You can implement such a layout without using Grid Layout and using just Flex Layout IMO Grid is actually simpler than Flex. Once IE11 is out of the picture, I think it might be worth considering teaching CSS beginners using a Grid-first approach.
Re: CSS: Absolutely positioning things relatively
#19Re: CSS: Absolutely positioning things relatively
#20In a gif between “It’s probably best to show you” and “Voila”, social icons don’t stick to the image, dangling at the bottom instead. How to make them stick?
Asking it because most commenters here seem to praise the grid, but ignore these little facts. Interesting if these are by design or by overlook and how to fix that.