Giter VIP home page Giter VIP logo

Comments (8)

hudsonperalta avatar hudsonperalta commented on August 22, 2024

Try setting the width & height in Properties

$( '.slider-pro' ).sliderPro({
    width: '100%',
    height: '100%',
    forceSize: 'fullWidth'
});

from slider-pro.

davidghi avatar davidghi commented on August 22, 2024

@timkirtley If you set the height to 100%, you must make sure that the container in which you add the slider also has a height of 100%. If that container doesn't have any defined height, then 100% out of nothing will be nothing. That's why the slider collapses. So, if you add the slider directly in the body, you would need to add this CSS:

html, body {
    height: 100%;
}

The other option is to set the forceSize option to fullWindow.

from slider-pro.

timkirtley avatar timkirtley commented on August 22, 2024

Thanks for the reply. The slider is indeed inside a div that has a px height set which is what I dont understand..

Inspecting the main slider container '.slider-pro.sp-horizontal', it gets 'width: 100%' and 'max-width:100%' added to it but no height style, which is why I tried adding the missing 'height:100%' to the elements which gave me 100% height, but then the centering of slides wasn't correct as per my first message.

from slider-pro.

davidghi avatar davidghi commented on August 22, 2024

A link to your page would help. Also, please remove the extra CSS you added.

from slider-pro.

davidghi avatar davidghi commented on August 22, 2024

No further answer, so I assume the issue is resolved.

from slider-pro.

timkirtley avatar timkirtley commented on August 22, 2024

Hi David,
Sorry, I had to change the slideshow for one I've used in the past as was up against it with a deadline. I'll have another try with it later.
Thanks for getting back to me though.

from slider-pro.

davidghi avatar davidghi commented on August 22, 2024

No problem :) I like to keep the Issues section clean, so I close issues if there's no response from the user AND if the reported issue doesn't seem to be a bug. If you'll have another try later and experience problems feel free to reopen the issue or submit a new one.

from slider-pro.

timkirtley avatar timkirtley commented on August 22, 2024

Yeah I noticed that - tidy issues section was one of the reasons I tried the plugin in the first place :)

On 30 Jan 2015, at 12:18, David Ghiurau [email protected] wrote:

No problem :) I like to keep the Issues section clean, so I close issues if there's no response from the user AND if the reported issue doesn't seem to be a bug. If you'll have another try later and experience problems feel free to reopen the issue or submit a new one.


Reply to this email directly or view it on GitHub #20 (comment).

from slider-pro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.