1

Topic: parent unit CSS

Good evening children, there are two units parent and the main, install  a background  the unit BUT as  the mainframe,  the mainframe block_confirmation it is not necessary for me
[url =]
https://jsfiddle.net/koluha/saszb6od / [/url]

<div class = "parent_confirmation">
<div class = "block_confirmation">
<p> Welcome to a site of a network of wine shops For access it is necessary to confirm full age age. </p>
</div>
</div>
.parent_confirmation {
background: #48AD31;
opacity:.5;
width: 100 %;
height: 100 %;
position: absolute;
top: 0;
left: 0;
overflow: auto;
z-index: 10;
}
.block_confirmation {
background: #FAFAFA;
width: 700px;
height: 350px;
position: absolute;
top: 400px;
left: 50 %;
margin:-125px 0 0-390px;
z-index: 20;
}

2

Re: parent unit CSS

kolyan2288 , place both MIRACLES in one more, and child deduce from the parent. .. parent_confirmation will not influence on block_confirmation ...

3

Re: parent unit CSS

kolyan2288;
Do not touch , it operates on all that inside... Do so

.parent_confirmation {
background: rgba (72,173,49.5);
width: 100 %;
height: 100 %;
position: absolute;
top: 0;
left: 0;
overflow: auto;
z-index: 10;
}

4

Re: parent unit CSS

Thanks of children