On the mobile version of my site I have text blocks acting as buttons that I would like to have images next to. I am trying to horizontally align the image with the text and I can’t figure out how to do so and get the spacing right. How do I get them horizontally aligned?
Hey jofarhat,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) {
.page-id-694 #av_section_2 h3 img {
vertical-align:middle;
}
}
Best regards,
Rikard
Hey that fixed them being aligned, but the text no longer looks like it is in the vertical center of the color section. They look closer to the top.
Hi,
Try this as well:
@media only screen and (max-width: 767px) {
.page-id-694 #av_section_2 h3 {
padding-top:10px;
}
}
If you want to learn basic CSS then you can refer to this site for instance: https://www.w3schools.com/
Best regards,
Rikard
That did it! Thank you so much!
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon