Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #677124

    I’m trying to set the text/images of the testimonial grid content so it’s aligned vertically within it’s grid box. How can I do this? I’ve tried setting a custom class in the Testimonials element as well as in the individual testimonial elements within that and setting different css codes in the Enfold Child custom CSS box but nothing works…

    #677404

    Hey stephtaryn,

    Would you mind posting us a screenshot/mockup of what you would like to achieve? You can upload the screenshot to imgur.com or dropbox and share the link here :)

    Best regards,
    Vinay

    #677421
    #678929

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .avia-testimonial-content {
        display: table-cell;
        vertical-align: middle;
    }
    .avia-testimonial_inner {
        display: table;
    }
    

    Best regards,
    Yigit

    #679297

    Hi Digit,

    Thank you – I tried this but it made the content move to the left in each box and still not vertically centered.
    Do you have anything else I can try?

    #680766

    Hi,

    Please try using only following code

    .avia-testimonial-content {
        display: table-cell;
        vertical-align: middle;
    }

    Best regards,
    Yigit

    #680797

    Hi Digit,

    This doesn’t work as it makes the content in each box display to the left inside the box. How do I send you a screenshot? Or can you just log in and see what the issue is?

    #680798

    Hi!

    You can upload your screenshots on imgur.com or Dropbox public folder and post the links here or you can post logins here privately, your call :)

    Cheers!
    Yigit

    #680805

    Hi Yigit, I’ve added you as a user so you can login to Admin and take a look.

    #680812

    Hi!

    I changed the code to following one

    .avia-testimonial-content {
        display: table-cell;
        vertical-align: middle;
        min-width: 260px;
    }
    body div .avia-testimonial { 
        vertical-align: middle; 
    }

    Please review your website now

    Regards,
    Yigit

    #680817

    Hi Yigit,

    Thanks for trying this but the testimonials with stars are still not aligned vertically central. They are the main ones that stand out as aligned wrong so are you able to sort that?

    #680830

    Hi!

    They look centered on my end. Please flush browser cache and refresh your page a few times

    Best regards,
    Yigit

    #680837

    Ah I see now! They are vertically aligned in the centre thank you!

    Although they are now a bit to the left and not aligned horizontally central. This is even more noticeable when viewing on a mobile – have a look…

    #680838

    Hey!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 480px) {
    .avia-testimonial-content {
        min-width: 360px;
    }}

    Cheers!
    Yigit

    #680845

    Hi Yigit,

    That solves the problem on a mobile screen but doesn’t on iPad or Desktop – they are still not aligned horizontally central but to the left.

    Can it not somehow just be aligned centrally no matter what the screen size? There are so many different screen sizes from laptops to large iMacs to iPads etc. that we can’t add CSS code for every single scenario can we?

    #682191

    Hi,

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 1024px) and (min-width: 481px) {
    .avia-testimonial-content {
        min-width: 100px;
    }}

    Best regards,
    Yigit

    #682219

    Hi Yigit,

    This doesn’t fix the issue. It seems to be the ones with the stars that keep appearing to the left of each box.

    #682222

    Can you try adding all your suggested css codes in as you have access and then let me know once you have solved it (if you can solve it!)?

    #683459

    Hi,

    We added this code in the Quick CSS field:

    .avia-testimonial-content {
        display: block !important;
    }

    Please remove browser cache or hard refresh the page.

    Best regards,
    Ismael

    #684961

    That’s now perfect Yigit. Thank you so so much for your help!

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Testimonial grid vertical align content’ is closed to new replies.