I have installed the Vantage theme, and the Page Builder.
I use rows with 2 columns. On the right column I use an Image (PB) widget. On the legt column I use a text widget. The picture widget is bigger than the text widget. Is there a way to vertically centre the text widget to the picture?
This is my homepage: http://www.easymount.at/Wordpress/montageanleitung/
Thanks for your help
Br Christian
vertically centre a text widget
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi See You
Unfortunately vertically aligning using CSS is notoriously difficult. It’s something I’d like to implement in Page Builder, but haven’t been able to find a good solution.
At the moment the only solution would be to use custom CSS to add a top margin to cells. You’d need to find the cell ID for each cell and then add a top margin. I can point you in the right direction for this, but you’ll need to be familiar with CSS and HTML to actually implement it.
You’ll need to familiarize yourself with the Chrome inspector tool and the Custom CSS editor – https://siteorigin.com/basics/modifying-theme-design-with-custom-css/
Then you’ll need to find the cell IDs of the text cells and add top margins. Something like this.
To make this all responsive, you’ll also need to add media queries to get rid of the top margin on mobile devices.
Sorry there isn’t an easier solution.
Hello Greg,
I don’t suppose you have found a solution to this yet? I am still using the css work around for time being and using media queries to eliminate as you stated.
Hey Will
I can see your new thread on this question, I’ll answer there:
Thread: PageBuilder problem with padding
Thanks :)
Hi,
is there any new solution regarding vertical alignment or vertical centering of text / image in a page-builder row?
If not, can percentages be used, in CSS as follows, for vertical centering instead of padding in pixles?
#parentdiv {
/* … */
}
/* text / image to be vertically centered */
#childdiv {
position: relative;
width: 100%;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
Thanks in advance!
Hamza