You are here: Re: Long text in a table does not wrap? « HTML « IT news, forums, messages
Re: Long text in a table does not wrap?

Posted by Simon on 03/23/06 08:25

>
>> >
>> >> I have a <table style="width:100%"> but when the text is very long,
>> >> (with
>> >> no space), it does not wrap under firefox 1.5, it actually adds a
>> >> scroll
>> >> bar.
>> >
>> > Correct. It is called WORD wrap, it wraps on work breaks. You need to
>> > add
>> > word breaks for it to wrap at.
>>
>> Thnaks for pointing out the WORD wrap, I almost didn't see WORD wrap
>> there.
>>
>> But, I find it hard to believe that there isn't something to go around
>> only
>> WORD wraps.
>> Isn't there a css of some sort to enforce the given width of the table
>> even
>> if the WORD is wider than the table?
>>
>> Simon
>
> What do you want to do, let's have a look at the actual long
> word(s). There may be ways to solve the prob depending on the
> details.
>
> There was a discussion about some gene sequencing text and how
> best to represent it in html and css a while back, I forget if it
> bore directly on your prob...
>

The problem is many fold. First I run a blog host site, so the user can
enter what they want, (and I don't want to stop them).
Sometimes they enter links that are 200 characters long or things like "I am
soooooooooo.[x200chars]..ooo bored"

Then on the homepage I display the last 25 messages, (the first 45 words or
250 chars). And sometime on of those long words will break the display.
Luckily the site is busy enough for the messages to move along fine and the
display is only broken once in a while.

In fact at the moment it is fine, and I was a bit lucky to notice the
problem.

That is why I wanted to break the long words.
I could check every entry for words that are more than 'xx' chars in a row
but I was hopping to find a simpler way, (seen that it only happens once in
a while I don't know if I want my servers to check every entry). I think
that kind of problem should be handled client side.

Simon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация