1

How to prevent long words from breaking my div?


Ever since switching from TABLE-layout to DIV-layout, one common problem remains:
PROBLEM: you fill your DIV with dynamic text and inevitably there is a super-long word that extends over the edge of your div column and makes your site look unprofessional.
RETRO-WHINING: This never happened with table layouts. A table cell will always nicely expand to the width of the longest word.
SEVERITY: I see this problem on even the most major sites, especially on German sites where even common words such as "speed limit" are very long ("Geschwindigkeitsbegrenzung").
Does anyone have a workable solution to this?
This title and content for this question was made by "Edward Tanguay" at this link: https://stackoverflow.com/questions/320184/how-to-prevent-long-words-from-breaking-my-div. Contributions on stackoverflow.com are made under this license.

HTML Web

0 Answers

Give your answer

Be sure to answer with an explanation on why your solution works.

Don't see an answer for your question?
Ask here

Search tags used in this post