PDA

View Full Version : Smooth div resizing



pad
07-16-2009, 12:07 PM
I have a div which has a min-width and min-height on it, which is always smaller in one way (in width or height) than the containing div. However, the containing div pre-loads, so for a while the smaller div is visible.

What i'd like is for the smaller parent div to smoothly resize to fit the content in the container div, rather than simply jumping to the higher width/height.

Is this possible in js? :)

Jesdisciple
07-17-2009, 12:52 AM
Not really... My suggestion is to make the page smaller so it downloads faster and the delay isn't noticeable. A cheap imitation of what you want is possible, but it would make the content totally inaccessible to users without JavaScript.