title: How to set border to div element for text formatting?
body: <p>I'm working a comment section page where it allows the user to leave a comment. I need assistance in my layout for displaying the comments into the repeater control. I used to put the comments inside the div element of the item and alternatingitem template of the repeater. And as a result, the comment would go straight along the line in the div element if the user is typing too many words or paragraph. What I want is to put a limit where the text will stop and proceed to the next line of the div element. How would I do that?What is the best way?Any suggestion? Here's my layout for the repeater control where I used to insert the comments.</p>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt;
  
  &lt;HeaderTemplate&gt;
  &lt;/HeaderTemplate&gt;  
  &lt;ItemTemplate&gt;  
  &lt;tr&gt;
  &lt;td &gt;
  &lt;div style="background-color:#FFFF66" &gt;
  &lt;%# Eval("Name") %&gt; Says...
  &lt;%# Eval("Comments") %&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt; 
  &lt;/ItemTemplate&gt; 
  &lt;AlternatingItemTemplate&gt;  
  &lt;tr&gt;
  &lt;td &gt;
  &lt;div style="background-color:#CCFF33" &gt;
  &lt;%# Eval("Name")%&gt; Says...
  &lt;%# Eval("Comments")%&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt; 
  &lt;/AlternatingItemTemplate&gt;  
  &lt;SeparatorTemplate &gt;
  &lt;br /&gt;   
  &lt;/SeparatorTemplate&gt;  
  &lt;FooterTemplate&gt;
  &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>