Comments on: justify-content https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Thu, 22 Sep 2022 19:03:22 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: David Spector https://css-tricks.com/almanac/properties/j/justify-content/#comment-1772467 Fri, 21 May 2021 16:20:17 +0000 http://css-tricks.com/?page_id=21081#comment-1772467 This is so frustrating. The effect of display:flex and justify-content is not just to align small items along the major axis, but also to wrap along the cross axis. I can’t find any information about why items are not flush together along the cross axis when they are wrapped!

]]>
By: joe https://css-tricks.com/almanac/properties/j/justify-content/#comment-1770522 Tue, 06 Apr 2021 09:07:23 +0000 http://css-tricks.com/?page_id=21081#comment-1770522 I’m trying to obtain the same result with

justify-content as I get with {align-items:stretch}

Any idea how to accomplish this safely across devices?

Ideally I’d need to also be able to override {justify-content: flext-start} for example.

I’ve been using {justify-content: stretch} but the results are mixed.

]]>
By: Kate https://css-tricks.com/almanac/properties/j/justify-content/#comment-1750513 Mon, 05 Aug 2019 10:23:40 +0000 http://css-tricks.com/?page_id=21081#comment-1750513 Hi, I think syntax section is a bit misleading as justify-content is flex container property, not flex-item, so should be

.flex-container {
justify-content: center;
}

instead of

.flex-item {
justify-content: center;
}

]]>
By: Mat https://css-tricks.com/almanac/properties/j/justify-content/#comment-1682281 Wed, 27 Mar 2019 14:59:59 +0000 http://css-tricks.com/?page_id=21081#comment-1682281 If we define a flex-fallback with floats, a .clearfix on the wrapper-element can be necessary. But the usual pseudo-element clearfix causes problems with the justify-content: space-between declaration, cause it reacts as a additional flex-element. I.e. the space will distributet unevenly.
In this case we have to distribute the space manually (margin-x: auto;) or use another clearfix-method, which can have other issues.
Any other workarounds for that?

]]>
By: ceving https://css-tricks.com/almanac/properties/j/justify-content/#comment-1612175 Mon, 02 Oct 2017 16:46:39 +0000 http://css-tricks.com/?page_id=21081#comment-1612175 The option is not an attribute of a flex-item, but of the flex container.

]]>
By: Matthew Neal https://css-tricks.com/almanac/properties/j/justify-content/#comment-1611975 Sat, 23 Sep 2017 01:54:49 +0000 http://css-tricks.com/?page_id=21081#comment-1611975 space-evenly currently doesn’t work on Safari on iPhone 6 :(

]]>
By: Christa https://css-tricks.com/almanac/properties/j/justify-content/#comment-1611392 Mon, 28 Aug 2017 02:45:58 +0000 http://css-tricks.com/?page_id=21081#comment-1611392 In reply to Patrick Ryll.

I’m using Chrome too, and space-evenly works great. I hope the other browsers support it soon, as I much prefer that look over space-around in my current project.

]]>
By: Crystal Gardner https://css-tricks.com/almanac/properties/j/justify-content/#comment-1611168 Thu, 17 Aug 2017 15:29:04 +0000 http://css-tricks.com/?page_id=21081#comment-1611168 In reply to Patrick Ryll.

It also works in Chrome. I’m on version 60.0.3112.90 and justify-content: space-evenly works just fine.

]]>
By: Chris Coyier https://css-tricks.com/almanac/properties/j/justify-content/#comment-1610939 Mon, 07 Aug 2017 00:14:38 +0000 http://css-tricks.com/?page_id=21081#comment-1610939 In reply to Patrick Ryll.

As of that date, yep, you’re correct.

]]>
By: Patrick Ryll https://css-tricks.com/almanac/properties/j/justify-content/#comment-1610931 Sun, 06 Aug 2017 04:08:53 +0000 http://css-tricks.com/?page_id=21081#comment-1610931 I am pretty sure that as of today (August 4th, 2017), justify-content: space-evenly is not yet available. It seems to work in Firefox; however, I can’t find anything that explictly says this. Can anyone confirm this? Thanks.

]]>
By: 小小 https://css-tricks.com/almanac/properties/j/justify-content/#comment-1603701 Thu, 25 Aug 2016 02:30:59 +0000 http://css-tricks.com/?page_id=21081#comment-1603701 In reply to Glynn Phillips.

have a test

]]>
By: Mark https://css-tricks.com/almanac/properties/j/justify-content/#comment-1600232 Mon, 14 Mar 2016 20:09:17 +0000 http://css-tricks.com/?page_id=21081#comment-1600232 Is it just me or is the term ‘justify’ completely wrong here? In a typographic context, ‘Justified’ text is text is text that is adjusted so that the first and last items on a line are anchored left and right with the items in the middle distributed evenly.

The ‘space-between’ and ‘space-around’ properties would probably accurately show this in action but ‘flex-start’ and ‘flex-end’ properties have absolutely nothing to do with ‘justifying’.

It really bugs me when clients ask for copy to be ‘left justified’ when they actually mean ‘left aligned’.

Just me?

]]>
By: Marc https://css-tricks.com/almanac/properties/j/justify-content/#comment-1599558 Thu, 11 Feb 2016 11:01:37 +0000 http://css-tricks.com/?page_id=21081#comment-1599558 Hi !
I tried to use “justify-content” on Sublime Text 2, but it seems not to work.
Do I have to upgrade my ST2 or is it simply impossible ?
Thanks in advance.

]]>
By: RRKUK https://css-tricks.com/almanac/properties/j/justify-content/#comment-1599002 Tue, 12 Jan 2016 11:53:05 +0000 http://css-tricks.com/?page_id=21081#comment-1599002 for better understanding of “display:flex” property further checkout this. I found this was more easy to understand by playing a game with CSS editor.
http://flexboxfroggy.com/

]]>
By: Ken https://css-tricks.com/almanac/properties/j/justify-content/#comment-1598727 Fri, 25 Dec 2015 19:08:03 +0000 http://css-tricks.com/?page_id=21081#comment-1598727 It doesn’t seem to work in WinJs at all.

]]>