如何垂直居中我的引导列? [英] How can I vertically center my bootstrap columns?

查看:83
本文介绍了如何垂直居中我的引导列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个链接到我的问题的JSFiddle。我使用.center-y类来尝试垂直居中的文本元素,但没有结果。

Here's a link to a JSFiddle of my problem. I'm using a .center-y class to try to vertically center the text elements, but getting no results.

http://jsfiddle.net/2LKXQ/1/

.center-y {
vertical-align: center;
}


推荐答案

remove max-height and put顶部和底部边距我希望这将对您有所帮助

remove max-height and put top and bottom margin i hope this will helpful to you

 #WhatIsMasterPhoto {
       margin:25% auto;
        bottom: 10px;

    }

这篇关于如何垂直居中我的引导列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆