简体   繁体   English

引导好向左挤压内容

[英]bootstrap well squishing content to left

Using twitter bootstrap, I'm trying to float some .well divs inside a modal box, but it's giving me all kinds of headaches. 使用Twitter bootstrap,我试图在模式框中浮动一些.well div,但这使我头疼不已。

Basically, I want each well to contain two things, some text on the left, and an image on the right. 基本上,我希望每口井都包含两件事,左边是一些文本,右边是图像。 I want those two in the same row. 我要把这两个放在同一行。 Then, I want the wells floating next to each other. 然后,我希望各孔彼此相邻漂浮。

Unfortunately, I can't get the content of the well to work correctly. 不幸的是,我无法使井的内容正常工作。 The text always gets squished to the left, and the image is also to the left, and the entire right side is empty. 文本总是向左压缩,图像也向左压缩,整个右侧为空。

Here's my css: 这是我的CSS:

<div class="modal-body">
    <div class="row-fluid">
        <div class="span4 oneBook">
           <div class="well">
            <div class="row">
                <div class="span2">
                    <p><strong>Book Title</strong>: Claw of the Conciliator<br>
                    <strong>Author:</strong>: Gene Wolfe<br>
                </div>  
                <div class="offset3">
                    <img class="img-polaroid smallerImage" src="http://www.picturesofbooks.com/claw-of-the-conciliator"/>
                </div>
            </div>
           </div>
       </div>
    </div>
</div>

The div with the class oneBook would be repeated multiple times for however many books I want to display in the modal. 对于我想在模式中显示的许多书籍,具有oneBook类的div将重复多次。

Does anyone have any suggestions to get this to work? 有没有人有任何建议使它工作?

<div class="offset3 span3"><img class="img-polaroid smallerImage" src="http://www.picturesofbooks.com/claw-of-the-conciliator"/></div>

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

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