垂直对齐中间无线高

垂直对齐中间无线高

问题描述:

代码&预览链接:http://www.bootply.com/lixzKzFYxt垂直对齐中间无线高

我想在蓝条的链接垂直中间。

我认为这是可能的lineheight,但它会隐藏在第二个框中的链接的一部分。

链接有这个CSS选择.rubrik-thumbnail .caption a:first-child {}

的感谢!

这里是我的解决方案:

display:flex; 
algin-items:center; 
height:60px; 

CSS

.rubrik-thumbnail .caption a:first-child{ 
     top:30%; 
    } 

DEMO

+0

你Demolink是同样喜欢在我的帖子..ü需要叉得到与更改链接。 Here http://www.bootply.com/4xvWgom2iL 这不是真正的垂直中间... – Andi 2015-04-02 12:03:05