JSFiddle - React, Tailwind, and code Playground
by harsh dand
HTML
<div class="page blurme"></div>
<div id="container">
<p>blur background image with and opaque container</p>
</div>
CSS
.page {
position: relative;
padding: 50px;
height: 500px;
background: #222 url('http://www.hdwallpapersn.com/wp-content/uploads/2015/04/nature-background-images2.jpg') no-repeat left top;
background-size: cover;
}
.blurme {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
}
#container {
position: absolute;
top: 50px;
left: 50px;
width: 500px;
min-height: 500px;
margin: 0 auto;
border: 5px solid red;
background-color: rgba(0, 0, 0, 0.7);
}
#container > p {
color: white;
}