-
Maznet
How do I vertically centre align content within a Container?
-
Hi there,
Select the container, set
display
toflex
,align-items
tocenter
. -
Maznet
Is there a way to do this without using display: flex, as this throws out the layout completely?
I remember there was a way to set the margin or padding to something that would achieve the same thing but I can’t remember what it was.
-
Alvind
Hi there,
Which container on the site are you referring to?
-
Maznet
It’s the column with H2 title called ‘THIS BLOCK’
See screenshot here – https://ibb.co/Q3JyY8dG
-
Alvind
Is it only the heading you want to center? If so, select the column container and set the text alignment to center under the typography settings.
-
Maznet
No, it’s all the content, including the YouTube videos.
-
select the container with class
gb-element-26c00d91
, and setalign-item
s tocenter
. -
Maznet
Perfect, thanks Ying.
-
No Problem 🙂
- You must be logged in to reply to this topic.