Solution 1 :

First I must say that you are missing some </a> in the posted code. Make sure you fix them. You can use justify-content: space-between; to make them appear on left and right. I have created a code snipped that may be helpful. Please check this.

@import url('https://fonts.googleapis.com/css2?family=Montserrat:[email protected]&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}

header{
  background-color:tomato;
  display:flex;
  align-items:center;
  justify-content:space-between;
  
  height:100px;
}

nav ul{
  list-style:none;
  display:flex;
}

nav ul li{
  margin-right:10px;
}

nav ul li a{
  text-decoration:none;
  color:white;
}
  <header>
    <nav>
      <ul class="nav_links">
      <li><a href="about.html">About</a></li>
        <li><a href="packages.html">Packages</a></li>
        <li><a href="contact.html">Contact Me</a></li>
      </ul>
    </nav>
    <a class="cta" href="quote.html"><button>Get A Quote</button></a>
  </header>

Problem :

I am trying to place my 3 list items to the left, and my button to the right. I’ve checked it over a bunch of times, but I can’t find my mistake. Here’s the code:

@import url('https://fonts.googleapis.com/css2?family=Montserrat:[email protected]&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #24252A;
}

li,
a,
button {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  Color: #edf0f1;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  Color: #edf0f1;
  text-decoration: none;
}
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <header>
    <nav>
      <ul class="nav_links">
        <li><a href="about.html">About</li>
                <li><a href="packages.html">Packages</li>
                <li><a href="contact.html">Contact Me</li>
                </ul>
            </nav>
            <a class="cta" href="quote.html"><button>Get A Quote</button></a>
  </header>
</body>

</html>

Comments

Comment posted by j08691

Two things. Your HTML is invalid as you forgot to close your links. Then in your CSS

Comment posted by schoinh

Also try deleting

Comment posted by MDN

@j08691 Actually according to

Comment posted by validator.w3.org

@SMAKSS I’m going by the W3 validator,

Comment posted by SMAKSS

@j08691 Well, that’s my bad I thought you are talking about

By