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

Background Images #57

Open
jsanglier opened this issue Jan 27, 2015 · 2 comments
Open

Background Images #57

jsanglier opened this issue Jan 27, 2015 · 2 comments

Comments

@jsanglier
Copy link

Hi

Just for interest, is there anyway of using this for background images?

Joss

@ryanve
Copy link
Owner

ryanve commented Jan 29, 2015

It's not really designed for use with background images. You can use normal CSS media queries to set different background images at different breakpoints as needed.

@jsanglier
Copy link
Author

Thanks Ryan. It was just in a particular scenario where the client can chose the background for a div in the CMS, but I want to use different sizes of that image for different devices. That means that in its simplest form, the background image is loaded using inline styles.

I can solve it by using JQuery to select the correct image depending on device width, but it struck me that your script is halfway to doing that already.

Joss

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

2 participants