php - text wrap in a div - example inside -
i trying wrap text inside div text mysql , seems flow on set width. using code.
<div style='width:100px; min-height:20px; float:left; margin-left:10px; border:1px solid #ccc; white-space: none;'> <? echo "".$row['msg']."<br><br>"; ?> </div>
http://www.2click4.com/test/mods/chatrooms/index2.php?cid=noosa-heads@-queensland@-australia
here site trying result on. see 2 larger posts.
you need add css break-word property break text without spaces.
word-wrap: break-word;
Comments
Post a Comment