bootstrap 右对齐样式,在Bootstrap 3中右对齐div

Is there a way in Bootstrap 3 to right align a div?

I am aware of the offsetting possibilitys but I want to align a formatted div to the right of its container while it should be centered in a fullwidth mobile view. The class 'pull-right' is not working anymore. Did they forgot to replace it or am I missing something obvious?

left content

right content

Shure I know how to do this in CSS, but can it be done in pure bootstrap 3?

解决方案

The class pull-right is still there in Bootstrap 3

See the 'helper classes' here

pull-right is defined by

.pull-right {

float: right !important;

}

without more info on styles and content, it's difficult to say.

It definitely pulls right in this JSBIN

when the page is wider than 990px - which is when the col-md styling kicks in,

Bootstrap 3 being mobile first and all.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值