• Hello,

    Do you know the best way to centre my info text vertically. I tried css solutions for a long time but none worked well.

    Now I’m trying to use the common technique of using jquery to give my “ms-info” divs negative margins equal to half their height and then absolutely positioning them 50% of the way down the div.

    But when I use $j(‘.ms-info’).height() I seem to get the same value (74px) for each info box regardless of the content. Any ideas why this might be?

    Many thanks.
    Ben

    https://wordpress.org/plugins/master-slider/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bentonboomslang

    (@bentonboomslang)

    OK I think what I need to do is bind the height checking jquery function to the slide changing so that only checks the height when the slide is visible.

    Is there a way to do this? I’ve tried the following (and variations on this) but the event does not seem to trigger…

    $j(‘#top-banner’).on(MSSliderEvent.CHANGE_START, ‘.master-slider’, function(e){
    console.log(‘j’);
    });

    Is this because the WordPress version of Master Slider is different to the jquery version perhaps?

    Again, thanks for any help you can offer.

    Ben

    Plugin Author averta

    (@averta)

    Hi,
    I have to say by using CSS you may can achieve what you are looking for but since we did not see your site we cannot help you.

    Good luck

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Center text vertically in slide’ is closed to new replies.