This link:
suggests that text can be vertically centred within a <div> as follows:
I can't get it to work. Even the example in the link does not actually appear to be vertically centred and the HTML in the actual source uses 'height' while the example suggests 'min-height'. Am I missing something?
suggests that text can be vertically centred within a <div> as follows:
Code:
DIV.container {
min-height: 10em;
display: table-cell;
vertical-align: middle }
...
<DIV class="container">
<P>This small paragraph...
</DIV>