Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #494241

    Hi,
    Is there a way to Vertically centering text depending on the image height?
    http://www.redrams.com/images/HorizontalCenterAlign.jpg

    Please note that all images are just placeholders for the time being and will be changed.

    Thanks so much
    E.

    #494494

    Hey Edna!

    You can try following the instructions in this thread here to apply a custom css class to any text block of your choice then apply an appropriate margin-top style (with px or %).

    Cheers!
    Dake

    #495868

    Hi Dake,
    I have added the top margin style.10% However it doesn’t quite do what I need it to do which is a perfect centering of the text with the image next to it. Any help would be appreciated.

    Thanks
    E

    #496274

    Hi!

    I’m sorry but I don’t think there is an all-in-one solution in what you’re trying to achieve here. The previous solution will require additional css media queries to adjust the property on different screen sizes, in this case, the top margin. It is also more effective if you set the columns to have equal height. Please edit the first 1/2 column in the row then set the Equal Height Columns settings to “Equal height”. Set the vertical alignment to “Middle”.

    Cheers!
    Ismael

    #497473

    Hi Ismael,
    Thanks for the reply. I ws able to achieve what I needed by changing the Equal Height Columns settings to “Equal height”.
    It worked like a charm.
    Thanks for everything
    E.

    #498191

    Hey!

    Great! Glad we could help. :)

    Cheers!
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Vertically centering text depending on image height’ is closed to new replies.