I'm doing a one page site for a little consulting team, and in the section were the team appears, I can't make to align the justified content with an image that I would like to add in top of the text.
Here is what I have
HTML
<section>
<h2 class="altura">Equipo</h2>
<div class="container">
<div class="teamg">
<img class="fotoequipo" src="img/brad1.jpg">
<h3>Ps. Brad Pitt</h3>
<h4>Associate</h4>
<p>Lorem ipsum.</p>
</div>
<div class="teamg2">
<img class ="fotoequipo1" src="img/jen1.jpg">
<h3>Ps. Jennifer Aniston</h3>
<h4>Associate</h4>
<p>Lorem Ipsum.</p>
</div>
</div>
</section>
CSS
.altura {
margin: 3vw 20vw 3vw 20vw;
}
.container {
display: grid;
grid-template-columns: 20% 20% 20% 20% 20%;
}
.teamg {
grid-column-start: 2;
}
.teamg img {
align-content: center;
height: 180px;
width: 180px;
border-radius: 50%;
border: 5px solid #2b2c35;
}
.fotoequipo {
align-items: center;
height: 180px;
border-radius: 50%;
border: 5px solid #2b2c35;
}
.teamg2 {
grid-column-start: 4;
}
.teamg2 img {
align-content: center;
height: 180px;
width: 180px;
border-radius: 50%;
border: 5px solid #2b2c35;
}