As I have an element with a percentage height I can't use the line-height hack. Does anyone have any ideas on how to solve this?
<div height="100%">
I want to be vertically aligned in the middle
</div>
As I have an element with a percentage height I can't use the line-height hack. Does anyone have any ideas on how to solve this?
<div height="100%">
I want to be vertically aligned in the middle
</div>
did you try style="line-height:100%;"
.. assuming its only 1 line.
Here's what you want: http://www.jakpsatweb.cz/css/priklady/vertical-align-valid-solution-en.html