title: CSS one char per line
body: <p>I need all the text written in i a div to be vertical, like one character per line and centered.</p>
  <p>The only way i've achieved is giving the div a fixed width of <code>width: 7%;</code> and a <code>word-break: break-all;</code></p>
  <p>Is there any way using CSS to achieve this with no fixed width?</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>.flex-container {
      display: flex;
      border: 1px solid #000000;
  }
  
  .flex-container &gt; div {
      width: 400px;
      height: 300px;
      text-align: center;
      line-height: 75px;
      font-size: 30px;
  }
  
  .flex-container &gt; div:nth-child(odd) {
      background-color : #62d962;
  }
  
  .flex-container &gt; div:last-child {
      display: flex;
      justify-content: flex-end;
  }
  
  .flex-container &gt; div:last-child div {
      width: 7%;
  }
  
  .flex-container div:last-child div:nth-child(odd){
      background-color: #65e9e3;
      word-break: break-all;
      line-height: 1em;
      padding: 1em 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="flex-container"&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;
      &lt;div&gt;Box&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;Box&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;Box&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>