Comments on: A Complete Guide to Flexbox https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Sat, 11 Feb 2023 22:14:58 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: David Galliford https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1802926 Sat, 11 Feb 2023 22:14:58 +0000 http://css-tricks.com/?page_id=21059#comment-1802926 Currently, Chrome only supports the last-baseline in Blink (https://chromestatus.com/feature/5093352798683136)

]]>
By: John https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1797970 Thu, 08 Dec 2022 06:54:57 +0000 http://css-tricks.com/?page_id=21059#comment-1797970 Thanks, for this I just started learning flexbox and this is a great starter.

]]>
By: David https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1797852 Sun, 27 Nov 2022 03:02:11 +0000 http://css-tricks.com/?page_id=21059#comment-1797852 I keep returning to this page, love your explanations. So much of CSS sites these days are copied and pasted.

]]>
By: John W https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1797843 Fri, 25 Nov 2022 17:18:04 +0000 http://css-tricks.com/?page_id=21059#comment-1797843 i like flex because it can wrap responsively while maintaining a fixed gap between each item. That only works WITHOUT your margin: auto style. I believe grid layout gives the adaptive gap-width that you prefer by default, again WITHOUT your margin: auto style.

]]>
By: Bar https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1797796 Mon, 21 Nov 2022 16:14:14 +0000 http://css-tricks.com/?page_id=21059#comment-1797796 I keep coming back to this page. It’s perfect!

]]>
By: Travis https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1797230 Tue, 27 Sep 2022 20:03:05 +0000 http://css-tricks.com/?page_id=21059#comment-1797230 This is the best CSS guide I have ever seen. Clear, concise, and all around perfect. It has been a game changer for styling web pages.

]]>
By: Frank Conijn https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1795773 Mon, 16 May 2022 21:15:48 +0000 http://css-tricks.com/?page_id=21059#comment-1795773 I would suggest to mention that in case of flex-direction: column, justify-content becomes the vertical aligner and align-content the horizontal.

]]>
By: Rebecca https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1795137 Sat, 19 Mar 2022 20:46:08 +0000 http://css-tricks.com/?page_id=21059#comment-1795137 This is a life-saver! Everything else I’ve read either doesn’t work or is more complicated than I’m willing to make it. Thanks so much.

]]>
By: Hugo https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1794872 Mon, 07 Mar 2022 12:50:04 +0000 http://css-tricks.com/?page_id=21059#comment-1794872 Is there a property for making all items the same width?

]]>
By: Abelardo https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1785341 Mon, 08 Nov 2021 11:29:25 +0000 http://css-tricks.com/?page_id=21059#comment-1785341 Hi there!

To understand how these properties work, I suggest you to show a practical example.

For example, only writing this:

<

div style=”width:200px; display: flex; flex-wrap: wrap;”>,

doesn’t help me to understand the “flex-wrap: wrap” mechanism because I wrote this but I don’t see the effect after setting this property.

It’s good to show these properties but it would be better if you add practical examples.

Best regards.

]]>
By: Chris Coyier https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1781657 Thu, 26 Aug 2021 14:50:51 +0000 http://css-tricks.com/?page_id=21059#comment-1781657 In reply to ANUPAM KHOSLA.

Trying to get to the bottom of this. This part you wrote seems true: “flex-start also respects writing-mode direction.”

What is says right now:
flex-start: items are packed toward the start of the flex-direction.
start: items are packed toward the start of the writing-mode direction.

What MDN says:
flex-start: The cross-start margin edges of the flex items are flushed with the cross-start edge of the line.
start: The items are packed flush to each other toward the start edge of the alignment container in the appropriate axis.

It seems like there is some kind of difference, but I don’t understand what it is.

Little playground to test https://codepen.io/chriscoyier/pen/OJgVRPL

]]>
By: ANUPAM KHOSLA https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1781610 Wed, 25 Aug 2021 07:37:38 +0000 http://css-tricks.com/?page_id=21059#comment-1781610 In https://css-tricks.com/snippets/css/a-guide-to-flexbox/#justify-content you mention the following:

flex-start (default): items are packed toward the start of the flex-direction.

start: items are packed toward the start of the writing-mode direction.

This is technically incorrect. Flex-start also respects writing-mode direction.

]]>
By: neeraj https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1773347 Thu, 03 Jun 2021 06:20:58 +0000 http://css-tricks.com/?page_id=21059#comment-1773347 Note that CSS columns have no effect on a flex container.
please explain this.how?
thanks.

]]>
By: James Donegan https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1768794 Thu, 18 Feb 2021 22:30:32 +0000 http://css-tricks.com/?page_id=21059#comment-1768794 First of all, thank you for this post — I reference it often – but I’ve hit a snag and haven’t been able to find a solution. I am building a site for an artist. Some of his work is horizontal and some is vertical. I am creating a page for each piece where the top “landing area” is meant to fill the page and hold a heading/subhead, the artwork and some navigation (if the user scrolls down, there is more info about the piece, how to purchase, etc.)…

It works pretty well for horizontal pieces, but verticals are REALLY screwing me up. The artwork’s wrapper div doesn’t scale down and everything winds up giant and/or overflowing. I’ve read your articles about flex-shrink and flex-grow, but I can’t seem to figure it out. Please help if you can!

I’ve created a mockup for the desired effect … located here: https://www.dropbox.com/s/xdeltebgmzz23wy/flexbox-question.jpg?dl=0

]]>
By: Steve Chambers https://css-tricks.com/snippets/css/a-guide-to-flexbox/#comment-1767521 Fri, 22 Jan 2021 13:41:26 +0000 http://css-tricks.com/?page_id=21059#comment-1767521 In reply to Amel Selmane.

@Amel This is explained well here: https://stackoverflow.com/questions/32551291/in-css-flexbox-why-are-there-no-justify-items-and-justify-self-properties#33856609

]]>