Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1146789

    Hi.. I need to have some text box with an image/icon on the left.. No problem for horizontal alignement but how to maintain the correct vertical alignement to have te text centered at the middle of image..
    Schermata 2019-10-10 alle 09.26.27.png

    Thank You Very Much for Your Support..

    #1147022

    Hey newmediologo,

    Thanks for the screenshot, I’m not sure I understand the problem you are having though? Please try to explain a bit further and post a link to where we can see the actual element.

    Best regards,
    Rikard

    #1147049

    Hi Rikard.. In the text box the image is aligned to left and the text is on the right.. I need that the text remains vertical aligned at the center of the image as in the screenshot so when the element is displayed on different sizes of screens it remains with the same shape..

    Site is currently developed and under mainteinance, if necessary i can provide an admin login..

    Thank You Very Much for Your Support..

    #1147339

    Hi,

    Thanks for the clarification, it’s very difficult to always align the text depending on if the text wraps on 1, 2 or 3 lines for example. You would likely have to use multiple media queries in order to get that right. And even with that it might not always work as expected. If you need further help then please provide access to your site and let us know exactly what you would like to change and on which screen resolutions.

    Best regards,
    Rikard

    #1147342

    Hi @Rikard..
    In past times when we use HTML we use the tags <img src"myimage.jpg" align="left" valign=”middle” />

    What I can use to get the same result of valign=”middle” for the vertical alignement of the image..

    Thank You Very much

    #1147505

    Hi,

    You can use the vertical-align property in CSS: https://www.w3schools.com/cssref/pr_pos_vertical-align.asp. I’m not sure if it would work though since that will effect the text position inside of the container element, not in relation to the icon.

    Best regards,
    Rikard

    #1147519

    Hi Rikard.. I need that text and image remains aligned as in the screenshoot.. No more..

    Something similar is in this post: https://kriesi.at/support/topic/vertical-alignment-between-a-text-and-an-image/

    Thank You Very much

    #1147672

    Hi,

    Yes, I understand what you need, but like I’ve stated before it’s likely not that easy since the distance of the text from the top would be different depending on if the text wraps on 1, 2 or 3 lines. We would need to be able to inspect the element in question in order to give you accurate CSS.

    Best regards,
    Rikard

    #1147747

    HI Rikard.. Below the access data..
    Website is now in maintenance status
    Thank You very much..

    #1147840

    Hi,

    Thanks for that, you need to remove all line breaks after the images. I edited the first paragraph on the front page to illustrate the difference it makes.

    Best regards,
    Rikard

    #1147847

    Thank You Rikard but in that way text is above the center of the image, is better with one line break.. But is possible that we cannot find the way to vertical align the image..?

    Thank You Very Much for Your support..

    #1147972

    Hi,

    As far as I can see there is no way to align the image vertically unfortunately, you could try to add top padding to it though.

    Best regards,
    Rikard

    #1148011

    Hi Rikard..

    Probably the only way is create a table with Tablepress and apply a style to cells, Tablepress consent to set the alignment..

    Thank You Very Much for Your support..

    #1148308

    Hi,

    Yes, that might be an alternative which might work. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #1148339

    Hi Rikard, since there’s no way to solve You can close..

    Thank You Very Much for Your support..

    #1148389

    Hi newmediologo,

    We’ll be closing this thread then.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Vertical alignment between a text and an image’ is closed to new replies.