Streaming live at 10am (PST)

Center a container i section


#1

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)


#2

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:

Without Flexbox

Apply those 2 settings:


#3

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


#4

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,