Jump to content

Text Alignment


GroundVibes

Recommended Posts

Greetings all!

I have a question concerning the formatting of the text within my table.

So right now I am working on a website that has user input that is displayed on the main page.

So I defined my table with a width of "600px"...

If the user types his text normally like this "This is a sample..."
The text will automatically skip the line and it shall not exceed my 600px limit.

But the problem is that if a user types "Thisisasample..."
Which means the user typed a long line without any spaces, well the table exceeds the 600px limit and it just completely destroys my layout...

I tried applying "word-break: break-all;" to my css document but what happens is that
"This is a sample... " would display as
"This is a sam
ple..."

Which broke apart the word...

Is there a technique to prevent this or an actual justification of text alignment that will do so

Thx you advance!
Link to comment
https://forums.phpfreaks.com/topic/36005-text-alignment/
Share on other sites

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.