title: Make menu to work with box-sizing: border-box
body: <p>I have a menu where the label appears when the mouse is over the icon:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;a href="#"&gt;
        &lt;i class="fa fa-home"&gt;&lt;/i&gt;
        &lt;span&gt;One&lt;/span&gt;
      &lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>You can see an example which working fine in the <a href="http://plnkr.co/edit/gWB6O68x9UcfduWflzOq?p=preview" rel="nofollow">Plunker</a> demo.</p>
  
  <p>But if I use:</p>
  
  <pre><code>* {
    box-sizing: border-box 
  }
  </code></pre>
  
  <p>It stops working. The problem is in my site CSS I am using <code>border-box</code>.</p>
  
  <p>Is there a way to have CSS that with <code>border-box</code> results in the same menu?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  
  .wrapper {
    border: 1px solid red;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  
  .navigation {
    float: left;
    width: 40px;
  }
  
  .content {
    float: left;
    width: 200px;
  }
  
  ul{ 
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  a {
    background-color: #d0d0d0;
    color: black;
    display: inline-block;
    padding: 12px;
    text-decoration: none;
  }
  
  a:hover {
    background-color: black;
    color: white;
    width:100%
  }
  
  a:hover span {
    display: inline-block;
    vertical-align:top;
    width:0;
  }
  
  a span {
    display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
    &lt;head&gt;
      &lt;link data-require="font-awesome@4.3.0" data-semver="4.3.0" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" /&gt;
      &lt;link href="style.css" rel="stylesheet" /&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      
      &lt;div class="wrapper"&gt;
        
        &lt;div class="navigation"&gt;
          &lt;ul&gt;
            &lt;li&gt;
              &lt;a href="#"&gt;
                &lt;i class="fa fa-home"&gt;&lt;/i&gt;
                &lt;span&gt;One&lt;/span&gt;
              &lt;/a&gt;
            &lt;/li&gt;
            &lt;li&gt;
              &lt;a href="#"&gt;
                &lt;i class="fa fa-book"&gt;&lt;/i&gt;
                &lt;span&gt;Two&lt;/span&gt;
              &lt;/a&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        
        &lt;div class="content"&gt;
          This is the content&lt;/br&gt;
          Span of icon should be over content when mouse is over
        &lt;/div&gt;        
        
      &lt;/div&gt;
      
    &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>