Anita is My True Love


20 June, 2007

CSS3 >> background-origin and background-clip

Filed under: CSS

Mozilla, Safari 3 and Konqueror have experimental implementations of the CSS3 properties background-origin and background-clip.

Background-Origin

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

It takes three different values, border, padding and content. When you supply a value of padding, the position is relative to the upper left corner of the padding edge. With border it’s relative to the upper left corner of the border, and content means the background is started from the upper left corner of the content.

Background-Clip

The background-clip property is used to determine whether the backgrounds extends into the border or not. The default is border, which means it DOES extend into it, but if you set it to padding, it doesn’t.

(more…)






















Get free blog up and running in minutes with Blogsome
Theme designed by Minz Meyer