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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.