Alex Rivera | Logout

Is there any difference between background-clip and background-origin?

Asked 2012-10-05T20:55:17.370
33

The CSS3 declarations background-clip and background-origin seem to have the same effect on the background. They both appear to restrict the background to a certain area relative to the HTML element, so I was wondering if there really is a difference in function of these two declarations.

Edit
Report

1 Answer

5

From CSS3.info:

The background-origin property is used to determine how the background-position of a background in a certain box is calculated.

The background-clip property is used to determine whether the backgrounds extends into the border or not.

answered 2012-10-05T20:58:42.310

Your Answer