What is the uses of background-clip in css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the uses of background-clip in css?

I want to know about this css properties. where to use and what is the importance of this property. give me a suitable example of it. you can also suggest a link for it.

30th Jan 2018, 6:00 AM
Chandan Kumar
Chandan Kumar - avatar
3 Answers
+ 4
it just means what's included in width and height attributes, ( i.e content, padding, border) this one's important to remember, coz we have 3 similar properties 1. background-origin : for images 2. background-clip: for background color 3. box-sizing : overall element all 3 can have the same values, border-box padding-box content-box and similar meaning but for different stuffs i.e. image, color, HTML element
30th Jan 2018, 11:41 AM
Morpheus
Morpheus - avatar
+ 3
I couldn't under stand your answer please write down a short code for it
30th Jan 2018, 6:32 AM
Chandan Kumar
Chandan Kumar - avatar
+ 2
https://www.w3schools.com/cssref/css3_pr_background-clip.asp It is used to achieve a desired effect.
30th Jan 2018, 9:45 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar