2
Consider the following html code: http://jsfiddle.net/qt7dsx7b/
In the fiddle a div was defined with an image located in the upper right corner. It turns out I would like to add a margin between the image and the border of the div (simulating a 10px padding in the div). I tried to paddle the div, but the background image doesn’t move. I could also put a background-position: 95% rigth, but in that case I would need to know beforehand the size of the div and the size of the image, and both information I do not possess. The only known information is the 10px space between the image and the border.
Excellent question. This is one of the things effects created by committee (CSS, for example). Guys fill in details they don’t need in the specification, but they don’t think about the obvious things needed in everyday life.
– Bacco