title: How to display text left side and icon on right side in html css?
body: <p>I have to display text left side and font awesome icon on the right side.Now I am getting all font awesome icon below of text.I think this may pretty simple, but still, I can not get it to work.Would you help me in this?</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>.top-contact-menu {
    background-color: #6aaf08;
    width: 100%;
    padding: 5px 0px;
  }
  .top-contact-menu h2 {
    color: #fff;
    font-size: 14px;
  }
  ul.address-top-menu {
    list-style: none;
  }
  ul.address-top-menu li {
    display: inline-block;
  }
  ul.address-top-menu li:after {
    content: '|';
    color: #fff;
  }
  ul.address-top-menu li:last-child:after {
    content: ' ';
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" /&gt;
  
  &lt;div class="top-contact-menu"&gt;
    &lt;h2&gt;we are open:10am to 8pm&lt;/h2&gt;
  
    &lt;ul class="address-top-menu"&gt;
      &lt;li&gt;&lt;i class="fa fa-phone"&gt;&lt;/i&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;i class="fa fa-facebook"&gt;&lt;/i&gt;
        &lt;i class="fa fa-twitter"&gt;&lt;/i&gt;
        &lt;i class="fa fa-instagram"&gt;&lt;/i&gt;
        &lt;i class="fa fa-google-plus"&gt;&lt;/i&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>