首页 > Web开发 > 详细

HTML: vertical algin Big/small div in same row (bootstrap)

时间:2016-04-13 20:17:21      阅读:292      评论:0      收藏:0      [点我收藏+]

Reference:

http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3?answertab=votes#tab-top

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

and coomment trick for extra space:
<div class="row">
    <div class="col-xs-5 col-md-3 col-lg-1 vcenter">
        <div style="height:10em;border:1px solid #000">Big</div>
    </div><!--
    --><div class="col-xs-5 col-md-7 col-lg-9 vcenter">
        <div style="height:3em;border:1px solid #F00">Small</div>
    </div>
</div>

TODO:
flexbox

HTML: vertical algin Big/small div in same row (bootstrap)

原文:http://www.cnblogs.com/hellohelloworld/p/5388523.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!