Center a container i section

I just start learning webflow. I have seen the Layout Elements tutorials. But i can’t figure out how to center my container in the middle of a section?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Vertically or horizontally?

If you said “container” I assumed it’s vertically.

Prerequisit: the height of your section must be known, it must have either a fixed height, or a width defined in %age of the height of a parent.

There are 2 solutions.

With Flexbox

Make the section Flexbox and apply those parameters:

http://vincent.polenordstudio.fr/snap/kqa9q.jpg

Without Flexbox

Apply those 2 settings:

http://vincent.polenordstudio.fr/snap/jvpc9.jpg

http://vincent.polenordstudio.fr/snap/gzrjl.jpg

Thank you. But what if i will have this logo more to the left?

Hey @cathrine82,

So you want it horizontally ?
I’m lost here.
Try this on your image
margin left : auto
margin right : auto

29

Hope this helps,