Has your DIV element of a fixed height on it? The element size should change with the height of the table as long as it's height: auto (and not overflow hidden etc). Also the table can't be position: absolute. All CSS fun... Perhaps best to have a bit of a poke around with Firebug!
Aren't divs elastic by nature ? Maybe your parent div height is fixed in your css... Did you try creating a new div with a different id and place the table into it ? Is there something in the css that prevent all of your divs to be elastic ? Or a jquery function ?
Yes indeed they are. I think I did fix the height in my demo CSS to stop things jumping around a bit. But my CSS is just that - a demo :-). Please hack it around and customise it as needed! As I say, a poke around with Firebug is probably the best bet.
Replies
Has your DIV element of a fixed height on it? The element size should change with the height of the table as long as it's height: auto (and not overflow hidden etc). Also the table can't be position: absolute. All CSS fun... Perhaps best to have a bit of a poke around with Firebug!
Regards,
Allan
Aren't divs elastic by nature ? Maybe your parent div height is fixed in your css... Did you try creating a new div with a different id and place the table into it ? Is there something in the css that prevent all of your divs to be elastic ? Or a jquery function ?
Yes indeed they are. I think I did fix the height in my demo CSS to stop things jumping around a bit. But my CSS is just that - a demo :-). Please hack it around and customise it as needed! As I say, a poke around with Firebug is probably the best bet.
Regards,
Allan