CSS to get next buttons closer to the images

Hello,

Can you give me the CSS that would make the next and back arrows closer to the images? Please see attached.

Thank you, JL


Comments

  • Hi,

    Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.

    Thanks

  • My apologies. Here's the page.

    Thanks, JL

  • Please use the following CSS code:

    .mfp-arrow-right{
     right: 25%!important;
    }
    .mfp-arrow-left{
     left: 25%!important;
    }
    

    Put it in Betheme -> Theme options -> Custom CSS & JS -> CSS.


    Best regards

  • edited February 18

    I added that CSS and it looked really good for desktop, but it made the arrows change for the mobile version to be near the middle of the picture, and it doesn't look good. I need to leave the triangles alone for the mobile version of the website, leaving them where they usually sit.

    Also, can you tell me the CSS that'll change the color to border to the triangles so I can make them a little darker?

    Image: Screenshot taken on my phone. The triangles are now in the middle of the image, and the borders need to be a little darker.

    Thank you, JL


  • Use the following CSS code instead:

    @media only screen and (min-width:1240px){
     .mfp-arrow-right{
      right: 25%!important;
     }
     .mfp-arrow-left{
      left: 25%!important;
     }
    }
    

    For the color, use this CSS:

    .mfp-arrow::before{
     opacity: 1!important;
    }
    .mfp-arrow-right::before{
     border-left-color: #000!important;
    }
    .mfp-arrow-left::before{
     border-right-color: #000!important;
    }
    

    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.