# Reverse column in visual editor

**URL:** <https://forum.builder.io/t/reverse-column-in-visual-editor/1813>\
**Category:** Technical Questions\
**Tags:** visual-editor\
**Created:** [February 28, 2022, 5:24pm UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813 "2022-02-28T17:24:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![radikris](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@radikris](https://forum.builder.io/u/radikris)\
**Post date:** [February 28, 2022, 5:24pm UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/1 "2022-02-28T17:24:26Z")

</div>

Hi!

I have this column:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/fe9c021c36f808123d790c37a84721da246df206.jpeg)  
How is it possible if I want to reverse the column order.

What css class should I add, or what should I add to this?  
Please let me know, thanks!

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [February 28, 2022, 9:56pm UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/2 "2022-02-28T21:56:48Z")

</div>

Hey @radikris there are a few ways you could achieve this, but it might be helpful to know your exact use case?

I assume this is something for responsive design, e.g. stacking in reverse order at a certain breakpoint. If that is the case, our Column element has a `Reverse columns when stacked` toggle under the `Advanced Options` section of the option tab:

![GIFGIFGIF](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/a/a1ddf328cb9d22a3f1bcd29bda9d39bbd61d633c.gif)

If this is not to stack the columns, the easiest way would be to use flex-direction in the custom CSS window. Our Column elements use flex-box for styling, and the parent wrapper has a class `builder-columns` already applied out of the box. If you want to change the order, you could use something like:

```auto
.builder-columns {
  flex-direction: row-reverse; //or column-reverse
}

```

to acheive the same effect. Try either of those out and let me know if one works for you!

---

<div class="post-metadata">

**Author:** ![radikris](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@radikris](https://forum.builder.io/u/radikris)\
**Post date:** [February 28, 2022, 10:21pm UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/3 "2022-02-28T22:21:46Z")

</div>

Hi!

Yes, the global css worked, but maybe that not my usecase.

I have a symbol, a hero:  
inside a column: left text, right image,  
and I have a model entry with a boolean reversed, and I would like to bind dynamically this css to my column

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/e934142b3ce9db0ec2f5c626f5359f37333523a4.png)

Something like:  
If the ‘flexDirection: state.data.isReversed ? row-reverse : row’, or something like that, but if I select the column in the layers, and add the flexDirection to row-reverse it is not the expected behaviour.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/ff61e58b106a617ef432c75287b176bbd00b8030.png)

How could I solve this with this type of dynamic binding?

Thanks for your help @TimG , always appreciate it!

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [March 2, 2022, 12:03am UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/4 "2022-03-02T00:03:44Z")

</div>

@radikris the easiest way for this I think is again to use the global CSS since we dont directly have access to classes and styling of the builder-columns class within the UI.

What I did, was on the `Columns` parent, I put a conditional data binding to set a class on the Columns element based on whether isReversed is true or not, something like:

`state.isReverse ? 'reversed' : '';`  
 ![Screen Shot 2022-03-01 at 3.59.45 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/e38546a36c4795e76f68729669e806c7a383912a.png)

This will add the class `reversed` to the element if isReversed is true and nothing if false. From there I just updated the global CSS I mentioned above:

```auto
.reversed .builder-columns {
 flex-direction: row-reverse;
}

```

I made the update to you `herosymbol NEW` content page, check it out and see if that works for you!

---

<div class="post-metadata">

**Author:** ![radikris](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@radikris](https://forum.builder.io/u/radikris)\
**Post date:** [March 2, 2022, 6:48am UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/5 "2022-03-02T06:48:43Z")

</div>

worked like a charm, thank you very much!

---

<div class="post-metadata">

**Author:** ![radikris](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@radikris](https://forum.builder.io/u/radikris)\
**Post date:** [March 3, 2022, 9:26am UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/6 "2022-03-03T09:26:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/f61826d366573d80a63d3ee2a21082e3f65457a0.png)

@TimG A little help for this again, as you can see the reversed is worked, but the gap between the columns would not goes between the heroes. it will stay as a left padding but it is not on the right side anymore. how can we fix it?

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [March 3, 2022, 10:37pm UTC](https://forum.builder.io/t/reverse-column-in-visual-editor/1813/7 "2022-03-03T22:37:31Z")

</div>

Hey @radikris I think for this you would have to again rely on the custom CSS. You could put something like below:

![Screen Shot 2022-03-03 at 2.36.03 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/5/5095cf22ff556cda0e6366cf638753009a150591.png)

test it out to find your exact layout
