I would like to automatically resize div according the background-image size.
Is that possible with css?
I also need to update the background-image using jquery.
Until now I have: Resize div
Updated: JSFiddle link: Updated Link Is it easier to place the hand above the image element instead of setting a background-image for the div?
With css no there is no way to currently do this at the moment you can do it with javascript as shown below.
To set a background image
To get background image height or width is a real pain something like this should work