asp.net - How to set border to div element for text formatting? -
i'm working comment section page allows user leave comment. need assistance in layout displaying comments repeater control. used put comments inside div element of item , alternatingitem template of repeater. , result, comment go straight along line in div element if user typing many words or paragraph. want put limit text stop , proceed next line of div element. how that?what best way?any suggestion? here's layout repeater control used insert comments.
<asp:repeater id="repeater1" runat="server" datasourceid="sqldatasource1"> <headertemplate> </headertemplate> <itemtemplate> <tr> <td > <div style="background-color:#ffff66" > <%# eval("name") %> says... <%# eval("comments") %> </div> </td> </tr> </itemtemplate> <alternatingitemtemplate> <tr> <td > <div style="background-color:#ccff33" > <%# eval("name")%> says... <%# eval("comments")%> </div> </td> </tr> </alternatingitemtemplate> <separatortemplate > <br /> </separatortemplate> <footertemplate> </footertemplate> </asp:repeater>
you set div border
<div style="border:black 2px"> <!-- content goes here --> </div>
Comments
Post a Comment