Posted by Ben C on 06/14/07 08:22
On 2007-06-13, vunet.us@gmail.com <vunet.us@gmail.com> wrote:
[...]
> Thank you so much...
> However, this will not align to vertical middle:
>
> a{
> display:block;
> border:0px;
> margin:0;
> line-height:100%;
> vertical-align:middle;
> white-space:nowrap;
> text-align:center;
> width:100%;
> height:100%;
> }
>
><table border=1><tr><td width=70 height=50>
><a href=''>ha</a>
></td></tr></table>
The problem is with line-height:100%.
Percentage line heights are percentages of the element's font size, not
of its container's height.
Navigation:
[Reply to this message]
|