title: How do I properly resize this navigation text?
body: <p>Bear with me but I'm a total HTML/CSS nooby, couldn't find anything on here that asked this SPECIFIC question. I want to align these ul tags to completely to the right side as they get scaled, but If I scale it any more it'll be too big when the window is scaled-down but just right for the max window and vice versa when the window is smallest. Which is what I have right now. (we're only looking at width here). For example:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
  
      margin: 0%;
      padding: 0%;
  }
  
  
  #mainnav{
      padding-left: 45%;
      margin-right: 8vmax;
      display: block;
      position: sticky;
      z-index: 1;
      display: flex;
      top: 0; 
  }
  
  nav ul{
  
      margin-top: 30px;
      padding-left: 5%;
      padding-right: 5%;
      font-size: 12px;
      color: black;
      font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
      top: 0;
      position: sticky;
  }
  
  
  body{
      background-color: white;
      width: 100%;
      height: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;Practice&lt;/title&gt;
  
      &lt;link rel="stylesheet" href="stylesheet.css"&gt;
      
      &lt;script src = '/Users/apple/Downloads/Javascript/practice.js'&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;header&gt; 
          &lt;nav id='mainnav'&gt;
              &lt;ul&gt; &lt;a src='www.google.com'&gt; Home &lt;/a&gt;&lt;/ul&gt;
              &lt;ul&gt;Contact&lt;/ul&gt;
              &lt;ul&gt;Pricing&lt;/ul&gt;
              &lt;ul&gt;Help&lt;/ul&gt;
          &lt;/nav&gt;
  
      &lt;/header&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>What it looks like now:</p>
  <p><strong>Scaled to the max:-</strong></p>
  <p><a href="https://i.stack.imgur.com/LlpyA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LlpyA.png" alt="enter image description here" /></a></p>
  <p><strong>Scaled to smallest:-</strong></p>
  <p><a href="https://i.stack.imgur.com/z19ZL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z19ZL.png" alt="enter image description here" /></a></p>