Link vertical alignment, height 100%
How can I vertical center the text 'Test' in the right red box on http://beta.ovoweb.net/a.php# ? The link has a height of 1开发者_如何学编程00%, so it fills the whole td. Now when I set display: table-cell, the height isn't 100% anymore.
add this to your "icon" class
margin-top: auto
and remove
height:100%
If you want to go the "display:table-cell" route, I'm pretty sure that you need a parent div that has "display:table;" and "height:100%;" (don't forget to set the parent width also)
精彩评论