We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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) ?
The text was updated successfully, but these errors were encountered:
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
background-size: cover
And if you only want to do it to mobile elements then simple use write it in a media query.
Sorry, something went wrong.
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!
No branches or pull requests
Is it possible to make images appear better scaled on mobile (eg backgroundSize:cover) ?
The text was updated successfully, but these errors were encountered: