Posted by Ben C on 12/08/06 09:29
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.
Navigation:
[Reply to this message]
|