3
I would like to leave the three squares of the code below, centered symmetrically in relation to the center of the largest square that has the black background.
.box{
height: 100px;
width: 100px;
background: pink;
margin:0 auto;
padding: 20px 20px 20px 20px;
}
.box2{
height: 200px;
width: 200px;
background: red;
margin: 0 auto;
padding: 20px 20px 20px 20px;
}
.box3{
height: 300px;
width: 300px;
background: black;
margin: 0 auto;
padding: 20px 20px 20px 20px;
}
<div class="box3">
<div class="box2">
<div class="box">
</div>
</div>
</div>
Also in the jsfiddle .
Thanks man!! Great help!!
– Pena Pintada