title: HOW TO MOVE THE NAV BAR TO THE RIGHT?
body: <p>I'm new to CSS and I'm trying to move my nav bar to the right side. I want to keep my navbar transpart. Only thing I need help with is the navbar placement. THANK YOU SO MUCH FOR THE HELP! I am new to coding Here is my code in html:</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>html,
  body {
    height: 100%;
    width: 100%;
  }
  
  * {
    margin: 0;
    padding: 0;
    font-family: verdana;
  }
  
  bg-img.JPG {
    width: 100%;
    height: 100vh;
    background-image: url(img2.jpg);
    background-size: cover;
  }
  
  .bg-img.JPG0 {
    /* The image used */
    background-image: url("img_nature.jpg");
    min-height: 380px;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Needed to position the navbar */
    position: relative;
  }
  
  
  /* Position the navbar container inside the image */
  
  .container {
    position: absolute;
    margin: 20px;
    width: auto;
  }
  
  
  /* The navbar */
  
  .topnav {
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0);
    /* Navbar (aka.text) links */
    .topnav a {
      float: right;
      ;
      color: #fefefe;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
    }
    .topnav a:hover {
      background-color: #fefefe;
      color: black;
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="bg-img.JPG"&gt;
    &lt;div class="container"&gt;
      &lt;div class="topnav"&gt;
        &lt;nav&gt;
          &lt;a href="#home"&gt;Home&lt;/a&gt;
          &lt;a href="#news"&gt;News&lt;/a&gt;
          &lt;a href="#contact"&gt;Contact&lt;/a&gt;
          &lt; &lt;a href="#about"&gt;About&lt;/a&gt;
        &lt;/nav&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;img src="bg-img.JPG" alt="Snow" style="width:100%;"&gt;
  
  &lt;/div&gt;
  &lt;!--
  This script places a badge on your repl's full-browser view back to your repl's cover page. Try various colors for the theme: dark, light, red, orange, yellow, lime, green, teal, blue, blurple, magenta, pink!
  --&gt;
  &lt;script src="https://replit.com/public/js/replit-badge.js" theme="blue" defer&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>any help will be greatly appreciated! Thank you so much!</p>