Easy function "auto"margins in bricks?

In bricks I have to type “auto” in every field. Is there an easier and faster way to set automatic margins like Webflow does? Or I didn’t find the function in Bricks, in which case does anyone know where it is?
Thank you :wink:

image

hi @Mel,

If you want to automatically set the margins to Auto for every Block or Section you could do so by changing the theme.

You can do so by following these steps:

  1. Go to a page or template editor
  2. Click the settings icon in the left corner
  3. Click THEME STYES
  4. Create a theme or edit your current theme
  5. Edit the ELEMENT - SECTION or ELEMENT - CONTAINER and add the auto margin

That’s all!

2 Likes

@Dennis That’s just what I just did 10 mins ago :upside_down_face:. Thanks a lot :smiling_face:

Due to everything being flex based, auto margin is barely needed. Often simpler to just center the flex on the container, then the content will just be in the center anyway.

1 Like