| 
 Posted by Jonathan N. Little on 09/22/06 01:50 
richard wrote: 
> Actually, I need to know how to put the text in the middle of the division. 
> As I did with tables. 
> Vertical-align doesn't seem to be recognized. 
>  
> www.1-small-world.com/index2.html 
>  
 
Look it up for yourself and see why... 
 
http://www.w3.org/TR/CSS21/propidx.html 
 
property: 'vertical-align' 
applies to: inline-level and 'table-cell' elements 
 
DIV is neither. You can set DIV to "display: table-cell;" ...but guess  
what?  You guessed it, it will not work in IE. Other options are padding  
and line-height all a bit messy. 
 
--  
Take care, 
 
Jonathan 
------------------- 
LITTLE WORKS STUDIO 
http://www.LittleWorksStudio.com
 
[Back to original message] 
 |