title: Yii2 Kartik GridView Word-Wrapping
body: <p>Has anyone been able to set up word-wrapping for a Yii GridView DataColumn?</p>
  
  <p>Here is how I have set up the column:</p>
  
  <pre><code> [
      'class' =&gt; 'kartik\grid\DataColumn',
      'attribute'=&gt;'description',
      'format'=&gt;'html',   
      'contentOptions' =&gt; [
          'style'=&gt;'max-width:150px; min-height:100px; overflow: auto; word-wrap: break-word;'
      ],
  ],
  </code></pre>
  
  <p>And no matter what settings I use I can't get the text to wrap.  I was hoping to have it wrap causing the row height to dynamically grow but it is not doing that.  Here is what the column looks like:
  <a href="https://i.stack.imgur.com/fDE23.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fDE23.png" alt="enter image description here"></a></p>
  
  <p>Anyone have any ideas how to make this work?</p>
  
  <p>Thanks!</p>