title: Header content alignment / positioning
body: <p>I have a project and i struggle with positioning elements in CSS. i want to create a header with a contact number and email to the right and in image at the centre.
  The below is the code. suggestions to overcome this problem i'm facing are very welcome.</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>header {
    display: block;
    text-align: center;
  }
  
  #cw-logo-trans {
    width: 200px;
    display: inline-block;
    align-items: right;
    font-size: 24px;
  }
  
  #contacts {
    margin-left: 5px;
    float: left;
    color: white;
    font-size: 1.5em;
    /* 40px/16=2.5em */
    color: white;
  }
  
  .home {
    width: 70px;
    height: auto;
    background-color: white;
    padding: 10px;
    margin: 10px;
    float: left;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;span id="cw-logo-trans" alt="cw-logo-trans"&gt;
          &lt;img src="images/cw_logo.png" alt="cw-logo-" &gt;  &lt;/span&gt;
    &lt;span id="contacts"&gt;0800 111 111&lt;/br&gt;email@emailyou.com&lt;/span&gt;
  
    &lt;div class="home" alt="Home-button"&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/div&gt;
    &lt;/br&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>