I'm having a bit of trouble with a simple task. I want my span
and h3
elements to display on the same line, side by side. However, they are currently appearing on separate lines. Can anyone provide some guidance on how to resolve this issue?
header {
background-color: black;
color: white;
padding: 10px;
width: 100% !important;
display: flex;
}
header .glyphicon {
font-size: 1.5em;
margin: 5px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<header>
<span class="glyphicon glyphicon-menu-hamburger"></span>
<h3>Home</h3>
</header>