Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 30, 2019 10:39 pm GMT

Multiple Background Clip

You know how you can have multiple backgrounds?

body {  background-image:     url(image-one.jpg),    url(image-two.jpg);}

That's just background-image. You can set their position too, as you might expect. We'll shorthand it:

body {  background:     url(image-one.jpg) no-repeat top right,    url(image-two.jpg) no-repeat bottom left;}

I snuck background-repeat in there just for fun. Another one you might not think of setting for multiple different backgrounds, though, is background-clip. In this linked article, Stefan Judis notes that this unlocks some … Read article

The post Multiple Background Clip appeared first on CSS-Tricks.


Original Link: https://www.stefanjudis.com/today-i-learned/background-clip-is-configurable-for-every-background-gradient-separately/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks