Question: How to vertically align the text in a floated div? For example: I have a dynamic content with fixed height. if the content is small or big it has to automatically vertically align.

Thanks

Answer: 
I've come across this problem before.
I'll quote the experts so I don't fudge this up:
*"...internal object is absolutely positioned in half of the area height. Then is moved up by half of its height."*

This can be all done with % instead of exact pixels, in case the data is generated from a database and the height varies with each page.

Source: [here](http://www.jakpsatweb.cz/css/css-vertical-center-solution.html "here")

Demo: linked on the above page

*Here goes my first answer...*
Have you tried vertical-align: middle; ?