title: Forcing a long line of text (without spaces) to line break according to parent containers static width using CSS
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/499137/css-how-can-i-force-a-long-string-without-any-blank-to-be-wrapped-in-xul-and">CSS: how can I force a long string (without any blank) to be wrapped in XUL and/or HTML</a>  </p>
  </blockquote>
  
  
  
  <p>Lets say one has the following code:</p>
  
  <pre><code>&lt;div style="width:100px;height:1000px"&gt;This-is-a-long-line-of-text-without-any-spaces-This-is-a-long-line-of-text-without-any-spaces-This-is-a-long-line-of-text-without-any-spaces-This-is-a-long-line-of-text-without-any-spaces&lt;/div&gt;
  </code></pre>
  
  <p>I apologize but stack overflow (according to the preview) does not line break code snippets.</p>
  
  <p>Under most (?) circumstances, the following will cause the container that holds the long line of text to stretch to the full width of the text contained within.</p>
  
  <p>We would like to force this to line break (even mid word) according to the css specified width (width:100px) of the parent container.</p>
  
  <p>Is this possible via a css tag I do not know about?</p>
  
  <p>IE6+ comparability, plus gecko/webkit/opera please.</p>