# Spread items: Possible with "flex"?

**URL:** <https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851>\
**Category:** HTML/CSS\
**Created:** [April 25, 2023, 8:37pm UTC](https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851 "2023-04-25T20:37:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludvig](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Ludvig](https://forum.codewithmosh.com/u/Ludvig)\
**Post date:** [April 25, 2023, 8:37pm UTC](https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851/1 "2023-04-25T20:37:03Z")

</div>

Hello!

Im setting up a list of concert-dates. And I want the text to be spread out. So the DATE is aslways to the left, the location is always in the middle, and the time is always far right. Is this possible in flexbox?

I´ve been playing around with it, but I never quite get the result Im looking for.

//

![Skjermbilde 2023-04-25 kl. 22.33.20](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/2457ebc33372d607197cb9ec461b71c1cba20339.png)

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [April 26, 2023, 2:05am UTC](https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851/2 "2023-04-26T02:05:31Z")

</div>

I’m sure there is something that would work, I think the property is justify-content: space-between; you might also try space-evenly and see which you like better

---

<div class="post-metadata">

**Author:** ![Ludvig](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Ludvig](https://forum.codewithmosh.com/u/Ludvig)\
**Post date:** [April 26, 2023, 4:47am UTC](https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851/3 "2023-04-26T04:47:47Z")

</div>

Thanks for the reply!

Space-between and space-around dont push the two far enough to the sides 😶

---

<div class="post-metadata">

**Author:** ![JoelBonetR](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/joelbonetr/32/6003_2.png) [@JoelBonetR](https://forum.codewithmosh.com/u/JoelBonetR)\
**Post date:** [April 28, 2023, 7:54am UTC](https://forum.codewithmosh.com/t/spread-items-possible-with-flex/19851/4 "2023-04-28T07:54:19Z")

</div>

You need to separate the three pieces in separate spans, like so:  
https://codepen.io/joelbonetr/embed/preview/YzJQJZy?default-tabs=html%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=YzJQJZy

Cheers!
