Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #998401

    Hi,
    in order to show the testimonial images on mobiles I use the following CSS-code:

    @media only screen and (max-width: 767px)  {
    .avia-testimonial-image{
    height:80px!important;
    width:80px!important;
    float:left!important;
    }
    }

    But it’s not perfect: the distance between image and name is too small (see screenshot here) and on very small mobile screens it even cuts of the name.

    I would like to have the image and the name below each other (both centered).
    Is that possible?
    (here is the link to the page with the testimonials)
    (login-data in private content)

    • This topic was modified 6 years, 3 months ago by Rikard.
    #998746

    Hey catchbudapest,

    Can you disable caching and minification for now?

    Best regards,
    Victoria

    #998818

    Hi Victoria,
    is now deactivated!

    #998830

    Hi,
    I have two solutions for you to try, this first just adds a little margin between the image and text:

    @media only screen and (max-width: 767px) { 
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image {
        margin-right: 10% !important; 
      margin-left: 10% !important;
    }

    This second solution, creates two rows, with the text below the image, and manages many different widths:

    @media only screen and (max-width: 430px) { 
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-meta-mini {
    display: inline-block !important; 
    text-align: center !important; 
    }
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image {
    margin-left: 30% !important;
    }
    }
    @media only screen and (min-width: 431px) and (max-width: 767px) { 
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image {
        margin-left: 20% !important; 
        margin-right: 5% !important; 
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 1024px) { 
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-meta-mini {
    display: inline-block !important; 
    text-align: center !important; 
    }
    .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image {
    margin-left: 30% !important;
    }
    }
    

    Best regards,
    Mike

    #998869

    Hi Mike,

    first solution works perferctly for me.
    Thanks a lot!!

    Cheers,
    Florian

    #998919

    Hi,
    Glad to hear, I liked the first one best too.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #999180

    Hi Mike,

    yes, can be closed.

    Thanks again and best regards,
    Florian

    #999211

    Hi,

    Thanks for letting us know, I’ll close this for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Testimonials on mobile’ is closed to new replies.