Topic: 'dynamic' div height Pages that link to <a href="https://ozoneasylum.com/backlink?for=11102" title="Pages that link to Topic: &amp;#039;dynamic&amp;#039; div height" rel="nofollow" >Topic: &#039;dynamic&#039; div height\

 
Author Thread
Kaniz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

IP logged posted posted 11-14-2003 17:46 Edit Quote

I'm working on a webpage, and have a table inside of a div, right now I have the div height set to about 300px, with overflow set to scroll. However, the table isnt allways 300px tall, and can leave alot of whitepsace between the table div, and the content below it. Was wondering is it possible to have the height goto the height of the table, upto X px, then if the content is larger, goto autoscroll?

hopefully that makes sense

thanks

-k

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 11-14-2003 18:12 Edit Quote

CSS does have a max-height and max-width property, but unfortunately it is not supported by IE.

Aside from that, unfortunately no.



CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 11-15-2003 03:45 Edit Quote

could solve it maybe by just gettting rid of the table all together. Why is the table neccesary? Post a like to the page if you can and maybe by looking at the code someone can be of more assistance

Later,

C:\


~Binary is best~

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 11-15-2003 04:02 Edit Quote

It doesn't realy matter what element it is - the min-height would be what you want, but isn't supported by IE.

The concept is the same whether it's a table, a div, a p, a list, whatever...





Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu