Skip to content

Instantly share code, notes, and snippets.

@akabab
Created June 5, 2018 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akabab/c285bc0f4ed94d132c0c455429cc97ff to your computer and use it in GitHub Desktop.
Save akabab/c285bc0f4ed94d132c0c455429cc97ff to your computer and use it in GitHub Desktop.
blurred background in CSS
#bg {
position: fixed;
background-image: url("http://cosmetotheque.com/wp-content/uploads/2018/04/mario-gogh-589733-unsplash-1200x385.jpg");
filter: blur(2px);
width: 1000px;
height: 300px;
}
#content {
position: relative;
font-size: 3rem;
}
<div>
<div id="bg"></div>
<div id="content">
Hello Pierre
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment