-
Notifications
You must be signed in to change notification settings - Fork 592
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 there possibility to include image in css file? #5
Comments
Can you give an example of how you'd want this to work? |
I placed in css something like this: |
It's an interesting idea, though it requires a fair amount of additional processing. I'll see if I can get this into 1.4. |
I need this too - in the meantime, I have worked around this with custom js (requires jQuery):
|
Compass allows for inline images to be declared right into the css. I don't know how it works, but it might be of help to have a look in te the source if the proposed functionality is to be included into holder. |
@jasperkennis Compass encodes the image file using Base64 and embeds it using the data URI scheme. To mirror the same functionality, Holder would need to parse CSS, which at this stage would be unnecessary. I've already tested the CSS placeholder approach, it works, and will be included in 1.4 as soon as possible. |
This is now implemented, see https://github.com/imsky/holder#background-placeholders |
No description provided.
The text was updated successfully, but these errors were encountered: