You are here: Re: prevent <td> from stretchinggggggggggg despite setting fixed width « HTML « IT news, forums, messages
Re: prevent <td> from stretchinggggggggggg despite setting fixed width

Posted by User on 12/09/06 01:55

Thanks for replying..

I have set
style="table-layout:fixed; "

but under the cell:

<td ><div style="width:250px;
overflow:visible"><%=rs("title")%></div></td>

The contents of the cell overflows to other areas. i want it to be able to
be trapped in the div cell...if the contents hits the edge of the cell, it
will automatically be bring down to the next line...as if there is a line
break

"Ben C" <spamspam@spam.eggs> wrote in message
news:slrnenic1d.e8e.spamspam@bowser.marioworld...
> On 2006-12-09, User <user@email> wrote:
>> hi.
>>
>> i have a table and it is fixed to width of 200.
>>
>> inside a table, there is a dynamically generated content from db.. but as
>> the retrieved content is very long,
>>
>> my table will be stretcheddddddddddddddddd to fit in this content.
>>
>> How do i prevent my table or cells from being stretched by dynamic
>> contents?
>
> Put a div inside the <td> and set width: 200px on the div. The content
> from the db goes inside the div. You can control what happens to the
> overflow by setting the overflow property on the div.
>
> Another possibility is to experiment with table-layout: fixed.



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

 

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

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