Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Darken background image: https://stackoverflow.com/a/23208450
element {
background:
/* top, transparent black, faked with gradient */
linear-gradient(
rgba(0, 0, 0, 0.7),
rgba(0, 0, 0, 0.7)
),
/* bottom, image */
url(image.jpg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment