I'm trying to make a background the same height and widt as the picture which is selected in the background property. And I would like the heigth and width to be responsive and not static.
I know it can be done with an image, but would like it to be a background if it is possible?
<div style="background:url('http://cdn.lolhappens.com/wp-content/uploads/2013/06/Aww-in-a-picture.jpg'); background-size:100%"></div>
A simple fiddle here
And I would like it to have same effect as if you use an image as this example
I solved it like this:
I found my anwser here
The fix in short, was to make a transparent picture and then have a div to that img container like this:
<div style="background:url('background.jpg'); background-size:100% 100%; width:100%; height:100%">
<img src="transparent.png" style="width:100%" />
</div>