I have been struggling with this issue for hours.
Here is my Header.js
<div className="navbar-inner">
<h2>Text1</h2>
<h3>Text2</h3>
</div>
This is the content of my Header.css
:
.navbar-inner {
margin: 0 auto;
color: #fff;
display: flex;
width: 87vw;
background-color: red;
justify-content: space-between;
vertical-align: sub;
}
When I view it, here is what is displayed:
https://i.stack.imgur.com/tIEI5.png
I would like to align Text1 and Text2 on the same Y-axis: