[英]How do i center the panel-body, with input-label align with left side of input box?
Bootstrap: how can i make the panel-body align in center, but with the input-label align with left side of input text box? Bootstrap:如何使面板主体居中对齐,但输入标签与输入文本框的左侧对齐?
<div class="panel panel-default">
<div class="panel-body" align="center">
<form role="form" id="password-form">
<div class="form-group full-width">
<label class="input-label" for="userId">Username <Id></Id>:</label>
<div class="input-group min-width-400">
<input class="form-control" type="text"
id="userId"
name="userId"
required="true"/>
</div>
</div>
<button id="closeBtn" type="button" class="btn btn-default">Cancel</button>
<button id="resetBtn" class="btn btn-primary" type="button" style="width:150px">Reset Password</button>
</form>
</div>
</div>
If I understand you well, you´re looking for .panel-body {margin: 0 auto; width: xxx}
如果我对您的了解很好,那么您正在寻找
.panel-body {margin: 0 auto; width: xxx}
.panel-body {margin: 0 auto; width: xxx}
instead of your align attribute.. .panel-body {margin: 0 auto; width: xxx}
而不是您的align属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.