> Using Multiple CSS Background Images

// 181 words // 0 minute read

Using Multiple CSS Background Images

It isn’t something developers have a need to do very often, but you can set multiple background images on a single element.


.element {
    background: url('image_path') center repeat, linear-gradient(transparent 0%, #000 100%) no-repeat;

What can you do with this? It’s only limited by your imagination, but I’m personally a fan of always using as few elements as possible when working on a project.

Leave a comment

To make a comment, please send an e-mail using the button below. Your e-mail address won't be shared and will be deleted from my records after the comment is published. If you don't want your real name to be credited alongside your comment, please specify the name you would like to use. If you would like your name to link to a specific URL, please share that as well. Thank you.

Comment via email