What can I do to get my text to fit within my div?

I've got it working, guys! You can see by the attached screenshot that the hour plus worth of work needed to manually adjust the width of every table cell beneath my graphic proved fruitful and it looks good.

The problem is, however, that when I arranged my widths, I did so without any content in order to have the consistency I needed to focus solely on dimensions. When I put my text in, that's when I noticed that because of the way my text wrapped, sometimes it forced that div to expand thus messing up my "look."

So, I used "word-break:break-all;" to compel my text to behave, but now I have the unnatural text wrapping where words are getting broken up into nonsensical word fragments and I wanted to appeal to the ninjas to see if there's a better way.

Here's what I've got:

screenshot
This is the styling I'm using for the "description" cell (the one with all the text in it):

<td class="project_name" style="width:392px; word-break:break-all;">

Do I have another option available to me that would afford me the chance to display all of that text with hyphenated breaks that acknowledge the dimensions of that cell as opposed to the way the words currently display as randomly broken up word fragments?

What do you think?
brucegustPHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
Setting break-all seem like a really odd thing to do. Remove that and your words will break naturally.
0
Tom BeckCommented:
If you want the text to touch the right side of the cell without the weird word fragments, use text-align:justify (table 3 in this fiddle).

http://jsfiddle.net/ucemqt97/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.