I'm struggling to ensure that the three CSS buttons are the same size (using padding) and vertically aligned, as the second button includes a "<br />" which throws off the alignment. I was advised to use flexbox, but I haven't been able to achieve the desired result.
Here's the HTML code:
.flex.container.parent {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
vertical-align: middle;
position: relative;
}
.child {
background-color: rgb(242, 242, 242);
display: table-cell;
padding: 25px;
margin: 4px;
color: rgb(75, 75, 75);
text-align: center;
}
<div class="article container">
<div class="flex container parent">
<div class="child">ARTICLES</div>
<div class="child">
CASE STUDIES /<br /> WHITEPAPERS
</div>
<div class="child">NEWS/EVENTS</div>
</div>
Thank you for everyone's assistance - truly appreciate it! It's now functioning as intended!