I'm having trouble stretching my header to fill the entire page. I've tried using margin-left and right, but it's not working as expected.
My Header CSS:
background: green;
height: 70px;
width: 100%;
display: flex;
justify-content: space-between;
margin-bottom: 25px;
left: 0;
right: 0;
}
.header-right {
float: right;
}
@media screen and (max-width: 500px) {
.header-right {
float: none;
}
}
Below is my app.tsx file for reference:
const Header = () => (
<div className = 'header'>
<h1>Instaride</h1>
<div className="header-right">
<Button> Sign In</Button>
<Button> Contact</Button>
</div>
</div>
);
export default Header;