What am I not doing?

I’m trying to fix this navbar. I am trying to get each of these buttons to line up on the same line.

I tried adding a display inline-block, and other inlines to the CSS, but no luck.

.navbar {
  border-bottom: 4px solid #434343;
  height: 50;
  position: fixed;
  width: 100%;
  margin-top: -7px;
margin-left: -7px;

.box {
  width: 170px;
  height: 300px;
  border: 5px solid  #434343;
  border-color: black;
  float: left;
  margin-left: 20px;
  background: #525252;
  text-align: center;
  font-size: 15px;
font-family: impact, sans-serif;
color: #949494;

.boxes {
  padding-left: 75px;
.button {
overflow: hidden;
background-color: #000000;
padding: 5px;
border-radius: 3px;
float: center;
text-decoration: none;
text-align: center;
font-size: 20px;
font-family: impact, sans-serif;
color: #949494;

.button:hover {
background-color: #525252;
color: #000000;
font-size: 15px;

.u {
display: inline;
float: left;
vertical-align: bottom;

<div class="u">
<nav class="navbar">
<img src="https://i.imgur.com/ubreZtd.png" width="100px", height="50px">    

<li><a class="button" href="#about_us">About Us</a></li>
<li><a class="button" href="#services">Services</a></li>
<li><a class="button" href="#samples">Samples</a></li>
<li><a class="button" href="#contact_us">Contact Us</a></li>

You need to add the display: inline-block specifically to the elements you want to line up. In this case it’ll be your li’s:

  display: inline-block;

Give that a shot :+1:

I would suggest using flexbox and not floats or inline stuff.