简体   繁体   English

将我的“表单”框浮动到“顶部棕色div”容器右侧

[英]Float my 'form' box to right of the container in 'top brown div'

I am using Bootstrap 2 - for some reason the login box doesn't float correctly to the right - I have tried various combinations but to no avail... any suggestions.. 我正在使用Bootstrap 2-由于某种原因,登录框无法正确浮动到右侧-我尝试了各种组合,但无济于事。

I've added a jsfiddle - but i've not added the bootstrap.css as I am unsure how to add these within the jsfiddle editor 我添加了一个jsfiddle-但我没有添加bootstrap.css,因为我不确定如何在jsfiddle编辑器中添加它们

http://jsfiddle.net/d5e7dqL7/ http://jsfiddle.net/d5e7dqL7/

This is the form I am trying to position to the right (note I am using bootstrap and the container class) 这是我尝试定位在右侧的表单(请注意,我正在使用bootstrap和容器类)

        <form>
          <label class="login-label username">Username</label>
          <input value="Username" class="login-field username" />
          <label class="login-label password">Password</label>
          <input value="Password" class="login-field password" />            
        </form>

using bootstraps grid system should help your out immensely. 使用Bootstraps网格系统将极大地帮助您。

http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM