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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -