# Flex containers in a flex container justify

**URL:** <https://forum.inductiveautomation.com/t/flex-containers-in-a-flex-container-justify/39545>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [October 9, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/flex-containers-in-a-flex-container-justify/39545 "2020-10-09T16:27:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 9, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/flex-containers-in-a-flex-container-justify/39545/1 "2020-10-09T16:27:26Z")

</div>

v8.0.16, Perspective

I have a flex container with 6 flex containers inside of it. Is there a way to justify the first 4 to the left and the last 2to the right? Or do I need to have 2 main flex containers, one with 4, the other with 2?

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [October 9, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/flex-containers-in-a-flex-container-justify/39545/2 "2020-10-09T16:30:58Z")

</div>

Try

```auto
margin-left: auto

```

on the first item you’d like to be right justified.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 9, 2020, 4:31pm UTC](https://forum.inductiveautomation.com/t/flex-containers-in-a-flex-container-justify/39545/3 "2020-10-09T16:31:54Z")

</div>

You the man!! Thanks!!
