You are here: Re: CSS for a Link to Occupy the Whole Cell « HTML « IT news, forums, messages
Re: CSS for a Link to Occupy the Whole Cell

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация