Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to make images appear better scaled on mobile (eg backgroundSize:cover) ? #25

Open
lukebri opened this issue Jun 10, 2015 · 2 comments

Comments

@lukebri
Copy link

lukebri commented Jun 10, 2015

Is it possible to make images appear better scaled on mobile (eg backgroundSize:cover) ?

@dannio
Copy link

dannio commented Aug 28, 2015

why not just do it via css?

add a class on the wrapper before the block you use to call the slider which sets it's child elements to
background-size: cover

And if you only want to do it to mobile elements then simple use write it in a media query.

@Gcamara14
Copy link

I fixed this with CSS. The issue for me was that it's hard to target the div it creates above so I used the adjacent sibling selector:

https://stackoverflow.com/questions/3660046/what-is-syntax-for-selector-in-css-for-next-element

nav.navbar + div { background-size: cover !important; background-attachment: initial !important; }

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants