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

    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?

    #1111848

    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

    #1111957

    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.

    #1112184

    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

    #1112376

    That did it! Thank you so much!

    #1112483

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘horizontally aligning image and text within a text Block’ is closed to new replies.