You are here: Re: Can you force a 'break-word' wrap on a td without specifying its width? « HTML « IT news, forums, messages
Re: Can you force a 'break-word' wrap on a td without specifying its width?

Posted by Jim Moe on 11/03/06 06:53

CRON wrote:
>> No.
>> You could put it in a div and apply "overflow:hidden".
>
> Thanks for the reply Jim but it's not really that simple for me. I have
> tables all over my site and I've just realised that when people post a
> link or really long word it stretches the layouts all over the place.
> That's why I need a solution that only involves CSS so I can make the
> change site-wide.
>
There is nothing that you can do that does not require some sort of
server side processing. "overflow:hidden" (CSS) is not an attribute you
can apply to a table cell directly.
If you are considering zero-width characters, which is a post-processing
step, then all sorts of other options are open as well, like converting
the URL to a real link, inserting spaces every nth character, adding the
<div>.
It sounds like you are using tables for layout. This is one of the
problems doing that.
There have been several discussions regarding this issue in the last
couple of months.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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