JSFiddle - React, Tailwind, and code Playground
HTML
<header id='topBar'>
<ul id='topMenu'>
<a class='topMenuLinks' href='#'><li>Home</li></a>
<a class='topMenuLinks' href='#'><li>Link 1</li></a>
<a class='topMenuLinks' href='#'><li>Link 2</li></a>
</ul>
</header>
<div id='mainBody'>
</div>
CSS
#topBar
{
position: fixed;
top: 0px;
left: 0px;
display: block;
height: 100px;
width: 100%;
max-width: 2500px;
background: black;
border-bottom: solid thick white;
}
#topMenu
{
position: fixed;
left: 100px;
top: 35px;
}
#topMenu li
{
list-style: none;
float: left;
padding-top: 20px;
padding-right: 20px;
padding-left: 20px;
padding-bottom: 2px;
font-size: 150%;
color: white;
}
#topMenu li:hover
{
background: white;
color: black;
}
html, body {
height: 100%;
}
body
{
background: linear-gradient(white, rgb(221,221,221));
}