I can't figure out what I have wrong with my css. I would think this would vertically center the text inside this div:
.content-bar {
height: 60px;
background: #f7f7f7;
overflow: hidden;
border-bottom: 1px solid #ececec;
}
.content-bar-content {
display: flex;
align-items: center;
}
<div class="content-bar">
<div class="content-bar-content">
Testing 123
</div>
</div>
However, the text is lining up to the top of the div. What am I missing?
See codepen: https://codepen.io/anon/pen/xgOwwp
heightto.content-bar-content. - Mohammad Usman