Jump to content

help table moves out of content area


$php_mysql$

Recommended Posts

friend when ever a user submits date like

 

this is a test and i want to test etc etc till 80 characters it would print ok something like

 

this is a test and i want to

test etc etc

 

but if user post junk like

 

mmmmmmmmmmmmmddddddddddddddddjjjjjjjjjjjjjjjjjjjjjj continious 80 character then my table moves out of my main content,

 

how can i make even the mmmmmmmmmmmmmddddddddddddddddjjjjjjjjjjjjjjjjjjjjjj  to print like

 

mmmmmmmmmmmmmdddddddd

ddddddddjjjjjjjjjjjjjjjjjjjjjj

 

i mean make a break if users types continious?

Link to comment
https://forums.phpfreaks.com/topic/244120-help-table-moves-out-of-content-area/
Share on other sites

you could for the client side add (in your stylesheet):

 

.breakitup{word-wrap: break-word;}

 

But it's better to control this server side, because this little snippet doesn't work very well cross browser. SO make sure you read the manual entry

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.