Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use multiple background pictures in CSS

Shulou Source: shulou.com Published: 2022-06-01 04:19:44 11月16日 Update

This article is about how to use multiple background images in CSS. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Using multiple background pictures in CSS

Well, what if I want to add more than one image to the background?

This is possible and not very difficult, but when you have the idea of mixing two graphics into something beautiful, you can get a good result.

It is very useful when we want to add a pattern to the top of the background image, so we will show you this in this example.

Multiple background paths can be specified directly in CSS3, as shown below:

Body {background-image: url (https://image.flaticon.com/icons/svg/748/748122.svg), url (https://images.unsplash.com/photo-1478719059408-592965723cbc?ixlib=rb-1.2.1&auto=format&fit=crop&w=2212&q=80); background-position: center, top; background-repeat: repeat, no-repeat; background-size: contain, cover;) Thank you for reading! This is the end of this article on "how to use multiple background pictures in CSS". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Background multiple pictures background pictures good content images more articles practical beautiful things two examples graphics patterns how to do ideas articles useful Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Shulou Information Shulou Tech Info Apple