Hello!
I’m struggling with the vertical align on the top row of the following page:
http://qpuntto.com/cliente1-2/
I want all the items in the 1st row go vertical align in the middle, as you can see the highest (the one in the middle) apparently is aligned in the center, but the two beside it, are not, how can I make all the items go to the center (in a vertical reference), no matter which is the highest?
Hi Artvaz
Thanks for reaching out.
If you remove the padding that’s been applied to the last widget you’ll notice all three are top aligned.
Try this, should do the trick:
1. Edit the row in question by clicking the wrench icon > Edit Row.
2. Click Attributes top right.
3. Enter the following into the CSS Styles field:
Ref: http://davidwalsh.name/css-vertical-center-flexbox
Cheers buddy now is working!!!
Super :) Glad to hear that helped.
All the best.
Andrew, sorry but it worked really good in the desktop view but not in the mobile version, for some reason the image goes in a tiny size and the button overlay the text, what can I do????
NP let’s do this. Remove the styles we added and instead add a CSS Class, it’s the first field under the Attributes tab:
Then go to Appearance > Custom CSS and target your new row class:
What we’ve done is made our style stop below 680px to sort mobile up. Feel free to increase or decrease that pixel value to change when we drop our center align styles.
I think you might write “min-width” instead of “max-width” right?????
Whoops! Good catch. min-width indeed. Please change that. Thanks :)
Thank u ANdrew its really nice what all u people do for us
I had the same issue with mobile display, one of the columns would disappear to fix that just use the flex-grow and flex shrink attributes and set both to 1, code is shown below:
Hi there is this code meant to work in Safari? As it doesn’t work for my site On Safari
This coding works perfectly on all browsers except Safari