2014-03-06 48 views
0

我試圖獲得一個搜索表單以便在井內拉右。它向右拉,但向南移動。將搜索表單向右拉在一個井內

我的代碼是;

<div class="container"> 
<div class="well"> 

    <div class="pull-right"> 
<form class="form-inline " role="form"> 
    <input type="search" class="form-control" id="search" placeholder="Search Assets"> 
    <button type="submit" class="btn btn-default">Search</button> 
</form> 

</div> 

我已經做了在http://jsfiddle.net/52VtD/3366/

回答

2

一個的jsfiddle您需要根據您浮動的div後清除浮動。

Here

<div class="container"> 
    <div class="well"> 
     <div class="pull-right"> 
      <form class="form-inline " role="form"> 
       <input type="search" class="form-control" id="search" placeholder="Search Assets"> 
       <button type="submit" class="btn btn-default">Search</button> 
      </form> 
     </div> 

     <div class="clearfix"></div> 
</div> 
</div> 
+0

是整理它,謝謝! – Nathan