Skip to content

Instantly share code, notes, and snippets.

@greg-randall
Last active December 17, 2021 19:46
Show Gist options
  • Select an option

  • Save greg-randall/2fe5e8742f6e69b5d1a60b06680e7c5e to your computer and use it in GitHub Desktop.

Select an option

Save greg-randall/2fe5e8742f6e69b5d1a60b06680e7c5e to your computer and use it in GitHub Desktop.
Add a translucent color over a background image in a webpage. https://jsfiddle.net/Lmy6jw03/1/
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><rect style='fill:rgb(41,114,183);' width='100%' height='100%' opacity='0.75' /></svg>"), url('img/background.jpg');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment