"Joel Byrd" <joelbyrd (AT) gmail (DOT) com> wrote:
Quote:
if I put a really
long word (like a web address) in the div, then it props the rest of
the text open to the width of the word, and the text can't wrap past
that width; |
Well, then don't do that.
You're not supposed to put web addresses onto web pages as visible (or
audible) content but into attributes such as href. It's much more user-
friendly to have a link text and not a mile-long cryptic URL, or even a
reasonable URL.
Rare exceptions mostly consist of tutorial that _discuss_ web addresses.
There the best strategy is put <wbr> into critical places. There will be
remarks about <wbr> not being standard, but it's still the only practical way
to suggest potential breaks without causing trouble. More on this:
http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest
P.S. CSS has nothing to offer in this respect at present, not even at the
theoretical level.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/