Hello my friends,
I want to vertically align image with text. My custom class css is “customclass”;
.customclass img{ vertical-align: middle; }
But img css class in textblock doesn’t work. How can i fix it ?
Best regards.
Hey koraytastan,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan Shannon
Hello, thanks for reply,
Hi,
Only image I’m seeing is the whatsapp icon. Is this the one that you are referring to?
Best regards,
Jordan Shannon
Hello Jordan,
Icon and text. Can you look at the screenshot?
Hi koraytastan,
Can you disable caching and minification for now?
Best regards,
Victoria
Hi Victoria,
It’s ready for you now.
Hi,
Wrap the text in span tag, add in a unique class attribute like so:
<span class="whatsapp-text">TEXT MESSAGE</span>
… and then add this css code:
.whatsapp-text {
height: 80px;
line-height: 80px;
}
Best regards,
Ismael
Helloe Ismael,
Working but, i will write pixel every time ?
Can we solve this problem with align / css code?
Hi koraytastan,
Not sure what you mean by your last questions. Yes, you need css to adjust, you can write it just once for the class and then use the class on other pages.
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
Can’t I just do it using align code? A variable value of 80px. It’d can be 90, 100 px… Will I have to change this value every time? Alignment for two objects should not be so difficult.
Hi koraytastan,
Can you please wrap the text in a span with some class, so that we can target it with css.
Best regards,
Victoria