CSS DIV's and alignment
Posted: Sun 27 Feb 2011 2:51 pm
I have a fairly complex layout (multiple layers of nesting, and overlaying components) that had been using a table to perform the layout. I am trying to convert it to using CSS and DIV's. But the usual problem with lack of vertical alignment in DIVs has reared it's head.
I need an image within a DIV to aligned with the bottom on the DIV container. But I vary the height of the image with a script to produce some animations. The animation only works if the image is 'bottom' aligned. The "vertical-alignment: bottom" construct only works on in-line elements.
Any ideas?
I need an image within a DIV to aligned with the bottom on the DIV container. But I vary the height of the image with a script to produce some animations. The animation only works if the image is 'bottom' aligned. The "vertical-alignment: bottom" construct only works on in-line elements.
Any ideas?