I want to align my text in the example below to middle and center of my box. Tried to use align-content:center
or justify-content:center
but it just messes with the flex-basis
. Just like in the first box of the image I attached.
Here is my html code
<div class="box">
<div class="one">1</div>
<div class="two">2</div>
<div class="three">3</div>
</div>
and here's the CSS
.box {
display: flex;
height: 350px;
justify-content: space-evenly ;
}
.box > div{
flex-basis: 25%;
background-color: rgba(255, 235, 205, 0.336);
box-shadow: 2px 2px #eee0e0;
font-size: 1.5em;
}
.one{
align-self: center;
}