Forum Moderators: not2easy
<style>
.flex {
display: flex;
align-items: center;
justify-content: center
}
.flex p {
width: 33%;
padding: 10px;
text-align: center;
box-sizing: border-box;
flex: 1
}
</style>
<div class="flex">
<p>
$foo
</p>
<p>
$bar
</p>
<p>
$str
</p>
</div> <style>
.flex {
display: table /* removed the flex stuff */
}
.flex p {
width: 33%;
padding: 10px;
text-align: center;
box-sizing: border-box;
display: table-cell
}
.flex {
display: flex;
align-items: stretch;;
justify-content: center
}
.flex p {
width: 33%;
padding: 10px;
text-align: center;
box-sizing: border-box;
flex: 1;
display: flex;
align-items: center;
}