[英]Bootstrap textarea align right css
I am using bootstrap with jquery and I am trying to figure out how to have this textarea line up on the right side of the screen instead of the left. 我正在将bootstrap与jquery一起使用,并且试图找出如何使此textarea在屏幕的右侧而不是左侧排列。 Will someone please assist me in how to move it to the right side of the screen.
有人能协助我将其移至屏幕右侧吗?
<div class="col-xs-7">
<div class="row">
<div id="overdueSection" class="col-xs-6">
<label class="centered" for="overdueWindow">OVERDUE BATCH</label>
<textarea type="text" name="overdueWindow" id="overdueWindow" class="form-control" rows="7"></textarea>
</div>
</div>
</div>
Multiple ways to achieve this 实现此目的的多种方法
1) Custom CSS 1)自定义CSS
#overdueWindow {
float: right
}
2) Using Bootstrap push-*
classes 2)使用Bootstrap
push-*
类
<div id="overdueSection" class="col-xs-6 col-xs-push-6">
尝试pull-right
Bootstrap类
<div id="overdueSection" class="col-xs-6 pull-right">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.