css - 垂直对齐中间没有行高的链接

标签 css hyperlink alignment line vertical-alignment

代码&预览:http://www.bootply.com/lixzKzFYxt

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

我读到可以使用 lineheight,但它会隐藏第二个框中的部分链接。

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

谢谢!

最佳答案

CSS

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

DEMO

关于css - 垂直对齐中间没有行高的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29411470/

相关文章:

javascript - <a href ="javascript:history.go(-1)">返回</a>安全吗?

ruby - Rails3 和自动 nofollow 链接

vim 如何逗号对齐

css - Arial 和 Courier 不适用于 Ubuntu

javascript - react 语义 Ui 按钮悬停

php - 我怎样才能制作一个按钮链接,就像在 Facebook 中一样?

html - 水平和垂直对齐 DIV - CSS

css - 如何对齐第二列(和更多列)中的元素,以便变化的值(增加的字符)不会推送

javascript - 为什么 Webgl 3D 无法在 Chrome 中运行?

html - 负 margin 打破 float