Does anyone know if it is possible to vertically center two floated elements
within their parent element?

My desire is to have a list element contain an image and a paragraph. The
image and the text should appear adjacent to eachother, not stacked (meaning
I'm probably going to need to use floats, right?). Now, if the paragraph is
shorter vertically than the image, then it should be centered vertically
next to the paragraph. The same applies to the image, if it is smaller than
the paragraph in height, then the image should vertically align to the
middle of the paragraph.

This is pretty easy with tables, but with anything else it seems impossible.


Here is an example:

http://www.twoandahalfd.com/temp/cssd/float_vertical_problem.html

Any insight you have will be greatly appreciated,
Thank you,
Eric Knudtson
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to