I have a table with a title column on my index.html.erb. These titles are very long so when I render my page the table goes quite far horizontally across the screen. It's all on one line as well. How do I set it so that after around 6 words it goes onto another line, and after 6 more words the string is cut off. The table is looped! The full description can be read when a user visits the seperate show.html page
Some of the code below
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200">
<div class="text-sm leading-5 text-gray-900"><%= article.title %></div>
</td>