0
Because the text-align=center
of a container also reflects on your container intern?
.container-externo {
border: 1px solid red;
display: flex;
text-align: center;
}
.container-interno {
border: 1px solid black;
flex: 1;
}
<div class="container-externo">
<div class="container-interno">...</div>
<div class="container-interno">...</div>
<div class="container-interno">...</div>
<div class="container-interno">...</div>
</div>
The acronym CSS means Cascading Style Sheet, that is, cascading styles. What made you think that the internal element would not have the style applied in the external element?
– Woss
I’m an apprentice. But thank you for making me see the obvious!
– Joabe