I have a react header component that looks like this:
const Header = () => {
return (
<div className="navbar">
<div className="logo-container">
<img id='logo' alt='header-logo' src={Logo}/><span id="header-title">Dashboard</span>
</div>
</div>
);
}
export default Header;
The stylesheet for this component looks like
.navbar {
height: 4em;
background-color: #f9f9f9;
width: 100%;
background: #00bceb;
}
#logo {
margin-left: 2em
}
#header-title {
display: inline-block;
vertical-align: middle;
margin-left: 0.5em;
color: #f9f9f9;
}
(I'm hiding the logo)
The text is not middle aligned.
Any help?