As you can see on the image I have created a 2-col layout with different size of columns. Our goal is to make the shorter column elements appear in the middle of the column.
Let’s start by selecting each column and in Settings assign unique ID:
Once we’ve got this we can go on with setting up classes properly. We need to give our row a class (in my case it’s awesome-row;)
As you can see I gave a combo class to our col element and called it vertical. It contains only info that the object will be pushed down 50% of parent container height and then up 50% of its own height. Neat trick! You probably realise that it doesn’t work yet - that’s the reason I removed the class from object; I’m saving it for next steps :)
I’ve removed the class vertical from our object so I can clearly see what’s going on. We will use it in the code soon.
Be careful! If `.vertical` is not assigned anywhere it will clean itself on CleanUp function in Styles!
First off, thank you very much for your detailed support! I finally had a chance to continue working on this part of the project where I need to finalize the vertical centering.
I followed your instructions and everything works fine! However, for some reason there is a strange problem. When you publish the site and resize your browser, in the first row (only) the image covers most parts of the text in the left column… Not sure what the problem is, because the columns underneath don’t have this bug… If it is a bug? Also, when you resize the site in preview mode, the problem does not occur.
Maybe you can take a quick look at it if you get a chance.