I’m trying to have some padding around the background image which is position to the right in the element, the element also has a gradient background.
I’ve tried using background-origin to position the image, but that would shift the background gradient as well.
Here’s my example:
Note
- This only needs to work for Webkit based browsers.
- No additional wrapper around element.
- Element width is fluid.
This works…
jsFiddle.
It won’t work in older IEs, but you only want WebKit support, so you’re in luck. 🙂