Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #186826

    Hi guys

    Is there a way to turn off background repeat in the slider. See link below. It’s repeating horizontally.

    http://www.mainline-energy.co.uk/home_new-slider-2/

    Thanks

    Masten

    #187569

    Hey Masten!

    It’s not, here’s how i see it:

    Cheers!
    Josue

    #191829

    Hi Josue,

    Yeah the way I fixed it was by just making the background 3000 wide with loads of dead space either side.Unfortunately this messes up the responsive.

    Is there a way to turn off the background repeat?

    Thanks

    Masten

    #191928

    Hi!

    Yes, you could use:

    background: url(_URL_) no-repeat top center;
    

    Cheers!
    Josue

    #192909

    Hi Josue

    I cant get this to work. See here

    http://www.mainline-energy.co.uk/temp-2/

    I’ve tried:

    background: url(http://www.mainline-energy.co.uk/wp-content/uploads/silder_background_2.png) no-repeat top center;

    and

    background: url(_URL_) no-repeat top center;

    - in both layer slider/custom styles editor and in enfold/styling/quick css (wasnt sure where it was supposed to go)

    Can’t get the slider background to stop repeating

    Thanks

    Masten

    #192910

    Just seen another problem. The background doesnt resize down in responsive either.

    Thanks

    Masten

    #193976

    Hey!

    Try with this:

    .ls-inner {
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }
    

    Best regards,
    Josue

    #194322

    Hey Jouse

    Right thanks. That fixed the repeating problem but the backgroud still isn’t resizing down for responsive.

    Thanks

    Masten

    #194475

    Hey Masten!

    The thing is, it won’t work responsively that way (putting the img as a background via CSS), you’ll need to put it as a Layer instead.

    Cheers!
    Josue

    #199534

    Hi Josue

    Ok I understand. The problem is if you put the background as a layer in each slide then the background will slide in again which won’t look right. It needs to stay where it is with the other elements sliding in on top.

    http://www.mainline-energy.co.uk/temp-2/

    Can you think of anything here to solve this? The only thing I can think of it to turn the slider background off for phones. Possible?

    Thanks

    Masten

    #199556

    Hey!

    Try with this:

    .ls-inner {
        background-image: url(http://www.mainline-energy.co.uk/wp-content/uploads/silder_background_2.png);
        background-size: contain;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }

    Cheers! 
    Josue

    #200509

    Hey Josue,

    That has totally sorted it! Thanks a lot :)

    Masten

    #200522

    You are welcome, glad we could help :)

    Regards,
    
Josue

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.