Add Flex Direction Reverse Values #60
Closed
johnsicili
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
@taylornowotny remember we were thinking those reverse orders were not critical enough to complicate the UI? This sounds like a valid use case ... idk |
Beta Was this translation helpful? Give feedback.
0 replies
-
@kof Yes I actually updated the design but it wasn't built, don't remember why. ![]() |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently Webstudio supports Flex direction row and column. But there are two other allowed values (and super useful) which are
row-reverse
andcolumn-reverse
. See docs for more.Use Case
Section 1 on desktop has an image on the left and text on the right.
Section 2 on desktop has an image on the right and text on the left. (Opposite of section 1).
When the breakpoint goes to small, the sections will be vertical and look like this: image, text, text, image (two texts back to back)
By setting the first section's direction to be
column-reverse
the output will now be: text, image, text image.Workaround
You can set the child's
order
but it's preferred to manage this from the parent (and there are probably use cases where you need to manage it from the parent).Beta Was this translation helpful? Give feedback.
All reactions