ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Line break (Wrap) Text in DIV for defined width using CSS<p>Hi <a class="username" rel="anvina"> anvina</a>,</p> <p>Add <strong>word-wrap:break-word; </strong>to break the word in next line.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;style type=&#34;text/css&#34;&gt; body { height: 98.5%; margin: 0; } &lt;/style&gt; &lt;div&gt; &lt;table id=&#34;tblChat&#34; style=&#34;width: 100%; height: 100%; margin: 0; table-layout: fixed;&#34; cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt; &lt;tr style=&#34;height: 85%; background-color: #fafaf7; border: solid 1px lightgray; border-bottom: none;&#34;&gt; &lt;td style=&#34;vertical-align: top; height: 100%;&#34;&gt; &lt;div id=&#34;divCommLog&#34;&gt; &lt;div style=&#34;word-wrap: break-word; max-width: 80%; border: 1px solid red;&#34;&gt; hfghfghfghfghfghfghfghfhfghfghfghfghfghfghfghfghgfghfhfghfghfghfghfghfghfghfghgfghfhfghfghfghfghfghfghfghfghgfghfhfghfghfghfghfghfghfghfghgfghfghgfghfgh&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/182757/Line-break-Wrap-Text-in-DIV-for-defined-width-using-CSS/https://www.aspforums.net:443/Threads/182757/Line-break-Wrap-Text-in-DIV-for-defined-width-using-CSS/Tue, 13 Mar 2018 05:59:20 GMTLine break (Wrap) Text in DIV for defined width using CSS<p>I cant do that... what i have sent you is a sample .. the actual structure is very big with a lot of controls in the table.... </p> <p>If i use table-layout : fixed it solves my issue..... </p> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/182757/Line-break-Wrap-Text-in-DIV-for-defined-width-using-CSS/https://www.aspforums.net:443/Threads/182757/Line-break-Wrap-Text-in-DIV-for-defined-width-using-CSS/Tue, 13 Mar 2018 06:15:35 GMT