title: li Element inside of a Div Changing Position
body: <p>I have a navigation bar at top of the page. On the right side of it, I have a navigation item list, which are list items. This ul is inside of a div item.
  <a href="https://i.stack.imgur.com/T0NYS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T0NYS.png" alt="enter image description here" /></a></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-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"&gt;
      &lt;title&gt;David Chu's China Bistro&lt;/title&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
      &lt;link href='https://fonts.googleapis.com/css?family=Oxygen:400,300,700' rel='stylesheet' type='text/css'&gt;
      &lt;link href="https://fonts.googleapis.com/css2?family=Lora&amp;display=swap" rel="stylesheet"&gt;
      &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
      &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons"
        rel="stylesheet"&gt;
      &lt;link rel="stylesheet" href="css/styles.css"&gt;
    &lt;/head&gt;
  
  &lt;body&gt;
    &lt;header&gt;
     &lt;nav id="header-nav" class="navbar navbar-expand-md"&gt; 
      &lt;div id="navbarNav" class="collapse navbar-collapse"&gt;
         &lt;ul id="nav-list" class="nav navbar-nav navbar-right"&gt;
          &lt;li&gt;
            &lt;a href="menu-categories.html"&gt;
              &lt;span class="material-icons"&gt;
              restaurant_menu
              &lt;/span&gt;&lt;br class="d-none d-md-block"&gt; Menu&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;
              &lt;span class="material-icons"&gt;
                info
              &lt;/span&gt;&lt;br class="d-none d-md-block"&gt; About&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;
              &lt;span class="material-icons"&gt;
                emoji_events
              &lt;/span&gt;&lt;br class="d-none d-md-block"&gt; Awards&lt;/a&gt;
          &lt;/li&gt;
          &lt;li id="phone" class="d-none d-md-block"&gt;
            &lt;a href="tel:410-602-5008"&gt;
              &lt;span&gt;410-602-5008&lt;/span&gt;&lt;/a&gt;&lt;div&gt;* We Deliver&lt;/div&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
       &lt;/div&gt;
      &lt;/nav&gt;
    &lt;/header&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Problem is, this div has a large space at the right side, as seen in picture. This causes the telephone number to go up when screen width expands. I want this list item to aligned right, so nothing would change when screen expanded.</p>
  <p><a href="https://i.stack.imgur.com/J020Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J020Q.png" alt="enter image description here" /></a></p>
  <p>I'm using Bootstrap 4. I have looked everything about flex but nothing worked out. By the way, I am trying to create a responsive navigation menu which will collapse according to screen size. That's why I am using this classes.</p>
  <p>I want this items as in image 1 in every condition.(Telephone number is below others)</p>
  <pre><code>       body {
    font-size: 16px;
    color: #fff;
    background-color: #61122f;
    font-family: 'Oxygen', sans-serif;
  }
  
  /** HEADER **/
  #header-nav {
    background-color: #f6b319;
    /*position: relative;*/
  }
  
  #logo-img{
      background: url('../images/restaurant-logo_large.png') no-repeat; 
      width: 150px;
      height: 150px;
      margin: 10px 15px 10px 0;
  }
  
  a.navbar-brand {
    padding-top: 25px;
    font-family: 'Lora', serif;
    color: #557c3e;
    font-weight: bold;
    font-size: 1.5em;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #222;
    line-height: .75;
  }
  
  .navbar-brand a:focus, .navbar-brand a:hover{
      text-decoration: none;
  }
  
  p.kosher {
      text-transform: uppercase;
      margin-top: 10px;
      color: #000;
      font-size: .7em;
  }
  
  p.kosher span{
      vertical-align: middle;
  }
  
  #nav-list {
    margin-top: 10px;
  }
  #nav-list &gt; li {
      margin-right: 15px;
  }
  
  #nav-list a {
    color: #951C49;
    text-align: center;
  }
  #nav-list a span {
    font-size: 1.8em;
  }
  #phone {
    margin-top: 5px;
  }
  #phone a { /* Phone number */
    text-align: right;
    padding-bottom: 0;
  }
  #phone div { /* We Deliver */
    color: #557c3e;
    text-align: right;
    padding-right: 15px;
  }
  
  button.navbar-toggler{
    clear: both;
    margin-top: -70px;
    margin-right: 0px;
  }
  li &gt; a:hover, li &gt; a:focus {
    text-decoration: none;
  }
  #nav-list {
    margin-top: 10px;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    max-width: 220px;
  }
  
  #nav-list li:last-child {
    width:100%;
    margin-right:0px;
  }
  </code></pre>