Q:

How to make table grow upward when dynamically adding rows?

I'm trying to grow a table upward from a fixed position, so that if for example the first table row is at 100px, the next one would be at 110px (grows upward instead of the default downward). How could I achieve this effect if I am dynamically adding table rows?

A:

Use absolute positioning and instead of setting the offset with top use bottom. With this property you can ensure the position of the bottom edge of your div - any change in size will force the div to expand upwards.

