Transparent Background / Shade /
by asdf
HTML
<div class="outer">
<div class="inner">
jdhfjghl ljkdhfgkj
</div>
</div>
CSS
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
div.outer {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
background: #ffffff url('http://www.crazythemes.com/images/photoshop_stock.jpg') no-repeat 50% 50%;
/* overflow:auto; */
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
div.outer:before {
content: "";
display: block;
background-color: #f0d000;
opacity: 0.3;
/* background-color: rgba(0, 0, 0, 0.3); */
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
div.inner {
height: 100px;
width: 50%;
margin: -50px auto 0;
padding: 0;
background-color: #ffffff;
position:relative;
top: 50%;
}