How can I dynamically resize my html table based on the text amount of text that is added? I am trying to be able to add more text and not have the whole page distorted because of it.
Four answers:
aquab121
2006-06-28 19:26:55 UTC
i think you might want to try to use some css to control your tables look and feel. mabey something like this...
behindthecodes.com
2006-06-28 16:31:35 UTC
The answer depends on your layout/structure. But the simplest one is to make that cell adjustable using width="*" (or simply no width at all).
Eg:
col1
this can be a very long text if you want, and the table should resize
billyboy
2006-06-28 16:11:30 UTC
dunno, tables automatically resize in html unless you set the width and height. You can try to set the height and not width and maybe it will just get longer. not sure what you're trying to acheive.
AMEN
2006-06-28 18:57:15 UTC
ssssssssssssssssssssssssdffffffffff
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.