JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="Untitled-1.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<title>No Icon</title>
</head>
<body>
<div class="header">
<div class="spacing-item"></div>
<ul class="header-link-row">
<li class="header-link-row-element"><a class="header-link" href="Untitled-1.html"><i class="fas fa-home"></i></a></li>
<li class="header-link-row-element"><a class="header-link" href="movies.html">Movies</a></li>
</ul>
<div class="spacing-item"></div>
</div>
</body>
</html>
CSS
html, body {
height: 100%;
width: auto;
}
body {
margin: 0;
background-color: #EDF7F2;
}
.fa-home {
color: white;
}
.header {
height: 9%;
display: flex;
flex-flow: row nowrap;
align-items: center;
background-color: #96CA2D;
}
.header-link-row {
list-style-type: none;
display: inline-block;
height: 100%;
margin: 0;
padding: 0;
}
.header-link-row-element {
display: inline-block;
height: 100%;
}
.header-link {
text-decoration: none;
color: white;
display: inline-block;
padding: 10px 10px 10px 10px;
}
.spacing-item {
width: 20%;
}