title: Move Items in Bootstrap 5 Navigation Bar
body: <p>So, I'm trying to align the items of a Bootstrap 5 navigation bar to the side as shown in this screenshot</p>
  <p><a href="https://i.stack.imgur.com/nxh80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nxh80.png" alt="Example" /></a></p>
  <p>I expected it to move to the side but it didn't work. I didn't see any change in the site. (I was using Live Server extension) Probably just changed something but Bootstrap overrides it.</p>
  <p>While I was making this question, in the similar questions, none of them was related or it wasn't in Bootstrap 5.</p>
  <p>I attempted using <code>margin</code>, <code>padding</code>, <code>text-align: right</code> / <code>text-align:flex-end;</code>, and <code>align-items:right</code> / <code>align-items:flex-right</code> on <code>navbar-nav</code> but to no avail.</p>
  <p>Here is some code:</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>navbar-nav {
    padding: 20px;
    margin: 20px;
  }
  
  navbar-nav {
    text-align: right;
    align-items: right;
  }
  
  navbar-nav {
    text-align: flex-end;
    align-items: flex-end;
  }</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;link rel="stylesheet" href="styles.css"&gt;
    &lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;Scratch Bookmarklets&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;nav class="navbar navbar-expand-lg navbar-light bg-light"&gt;
      &lt;div class="container-fluid"&gt;
        &lt;a class="navbar-brand" href="#"&gt;Scratch Bookmarklets&lt;/a&gt;
        &lt;button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
        &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
      &lt;/button&gt;
        &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
          &lt;ul class="navbar-nav me-auto mb-2 mb-lg-0"&gt;
            &lt;li class="nav-item"&gt;
              &lt;a class="nav-link active" aria-current="page" href="#"&gt;Home&lt;/a&gt;
            &lt;/li&gt;
            &lt;li class="nav-item"&gt;
              &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
            &lt;/li&gt;
            &lt;li class="nav-item dropdown"&gt;
              &lt;a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"&gt;
              Dropdown
            &lt;/a&gt;
              &lt;ul class="dropdown-menu" aria-labelledby="navbarDropdown"&gt;
                &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;
                  &lt;hr class="dropdown-divider"&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li class="nav-item"&gt;
              &lt;a class="nav-link disabled"&gt;Disabled&lt;/a&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
          &lt;form class="d-flex"&gt;
            &lt;input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"&gt;
            &lt;button class="btn btn-outline-success" type="submit"&gt;Search&lt;/button&gt;
          &lt;/form&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/nav&gt;
    &lt;script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Thank you in advance.</p>