1
How could I do a vertical overlay of Flexbox? I want to make half the circle inside the above item.
html, body {
height: 100%;
}
body {
background: #8844ee;
}
.card {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.background-header {
width: 400px;
height: 400px;
background: white;
display: flex;
flex-direction: column;
}
.topo {
background-color: #1b2b34;
background-size: cover;
width: auto;
height: 200px;
}
.foto {
background-color: red;
width: 75px;
height: 75px;
border: 3px solid white;
border-radius: 50px;
align-self: center;
}
.textos > h1,
.textos > h3{
display:inline;
}
.textos {
text-align: center;
}
<div class="card">
<div class="background-header">
<header class="topo"></header>
<section class="foto">
</section>
<section class="textos">
<h1>Nome</h1>
<h3>23</h3>
<p>Cidade</p>
</section>
</div>
</div>
Which item above? The class
.topo
?– Cmte Cardeal
this is the background item at the top of the card.
– Huberth