title: Making span not wrap inside other divs with fixed width
body: <p>How do you make the contents of a 100% width span not wrap when the text is more than 100% of parent? I have monkeyed around with <code>whitespace: nowrap;</code> with no luck.</p>
  
  <p><strong>PROBLEM: <code>span.firstname, span.lastname, span.email</code> all wrap text when their contents are longer than <code>div.name, div.personal, or div.account_view</code>.</strong> I would like the 3 spans to go for however long their content is (no wrap).</p>
  
  <p><em>HTML:</em></p>
  
  <pre><code>&lt;div class="account_view"&gt;
    &lt;div class="personal"&gt;
  
      &lt;div class="picture"&gt;
        &lt;img src="example.png" /&gt;
        &lt;span&gt;Image caption&lt;/span&gt;
      &lt;/div&gt;
  
      &lt;div class="name"&gt;
        &lt;span class="first"&gt;Firstname&lt;/span&gt;
        &lt;span class="last"&gt;Lastname&lt;/span&gt;
        &lt;span class="email"&gt;email@email.com&lt;/span&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><em>CSS:</em></p>
  
  <pre><code>div.account_view {
    display: block;
    height: auto;
    width: 700px;
    padding: 40px;
    margin: 0 auto;
    border: 0;
  }
  div.account_view div.personal {
    margin: 0 auto;
    clear: both;
    overflow: hidden;
    white-space: nowrap;
  }
  div.account_view div.personal div.picture {
    float: left;
    display: block;
    width: 200px;
    height: 200px;
    border: 1px solid #aaa;
    margin: 0 10px 0 0;
  }
  div.account_view div.personal div.picture img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
  }
  div.account_view div.personal div.picture span {
    display: block;
    font-size: inherit;
    text-align: center;
    margin: 0;
    position: relative;
    top: -27px;
    padding: 5px;
    background-color: rgba(0,0,0,.4);
    color: #eee;
  }
  div.account_view div.personal div.name {
    float: left;
    position: relative;
    top: -25px;
  }
  
  div.account_view div.personal div.name &gt; * {
    display: block;
    font-weight: 300;
    white-space: normal;
  }
  div.account_view div.personal div.name span.first {
    font-size: 125px;
    font-weight: 700;
  }
  div.account_view div.personal div.name span.last {
    position: relative;
    top: -9px;
    left: 5px;
    font-size: 56px;
  }
  div.account_view div.personal div.name span.email {
    font-size: 29px;
    position: relative;
    left: 8px;
  }
  </code></pre>
  
  <hr>
  
  <p><strong>GOAL: (hover over)</strong></p>
  
  <p><img src="https://i.stack.imgur.com/fvAHE.png" alt="" title="Trying to get it to look like this but stay like this no matter how long the contents is."></p>