.some-class { background-image: linear-gradient(to bottom, rgba(6, 7, 7, 0.52), rgba(22, 20, 22, 0.73)), url(/assets/images/mainbg.jpg); background-repeat: no-repeat; background-size: cover; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter