W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: No vertical-align of anchor with height larger than it's inner text

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 15 Feb 2003 17:49:06 -0500
Message-Id: <200302152249.RAA28137@nerd-xing.mit.edu>
To: Gustav Svensson <gurra16@spray.se>
Cc: www-style@w3.org

> The link-text lines up at the very top of the cell, which makes it differ
> from the previous columns, which have vertical-align:middle style.

Yep.  You're running into two issues:

1)  HTML won't let you make the <td> a link (XLink solves this problem, by the
    way)
2)  Vertical alignment is very hard to do in CSS

Note that you could _still_ make the <a> display:table-cell, give it
vertical-align:middle, and it would work like you want it to, even within the
constraints of the existing CSS2 layout model.

Boris
-- 
"Why can one call the time component of the preceding 4-vector 
by the name energy?  For two reasons:  First, because this time 
component has the correct units -- the units of mass..."
             -- From "Spacetime Physics" by Taylor and Wheeler
Received on Saturday, 15 February 2003 17:49:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT