I have got the following code with the body set to column, and I am trying to get everything inside the header to change directions to row, but nothing I can find online would work. The only way I can move it to the the right of my company name is by using position absolute which I know will result in bad responsiveness. It seems like a simple thing but just wont budge. Have tried flex-direction: row tried adding flex: 1 and stuff but yeah wont change. This is my current setup.
I like the current start to be column as i find its easiest to keep the footer at the bottom.
CSS
html, body {
height: 100%;
}
body {
display: flex;
flex-direction: column;
font-family: 'Roboto Mono', monospace;
}
header {
opacity: 0.7;
flex-direction: row;
}
main {
flex: 1 0 auto;
}
footer {
flex-shrink: 0;
}
HTML
<header>
<h3>Troydon Fitness</h3>
<h4>Test</h4>
<div id="mainNav">
<button class="openbtn" onclick="openNav()">☰ </button>
</div>
</header>