0
I have the following structure:
<div id="peca" class="cinzaClaroBB">
<section class="sessao peca">
<div>
<img src="folder.jpg">
<img src="cartao.jpg">
</div>
</section>
</div>
div#peca and section.peca sane display: flex.
to div that houses the images has not width.
Like centralize that one div in section?
I tried it the way below and it didn’t work!
/*PECA INICIO*/
body div#peca {
background-color: #dae4ee;
background: url(../../img/iconesHome/compras4.jpg);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
body div#peca > section.peca {
width: 80%;
align-content: center;
align-items: center;
}
body div#peca > section.peca > div img {
height: 350px;
padding: 5px;
cursor: pointer;
}
/*PECA FIM*/