JSFiddle: http://jsfiddle.net/2vLYn/
私はこのフォームを持っています:
画像を見ると、2 番目のボックスがそれを押し下げているため、3 番目のボックスが下に移動します。3 番目のボックスを 1 番目のボックスの下に置いて、空白があまりないようにする方法はありますか?
ここにHTMLがあります
<div id="wrapper"> <!--Open Main Wrapper -->
<div class="selection_list">
<div style="padding:3px; margin:3px; font-size:16px;"><strong>Title</strong></div>
<div class="selectionleft">Checkbox</div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
</div>
<div class="selection_list">
<div style="padding:3px; margin:3px; font-size:16px;"><strong>Title</strong></div>
<div class="selectionleft">Checkbox</div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
<div style="clear:both;"></div>
<div class="selectionleft">Checkbox</div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
<div style="clear:both;"></div>
<div class="selectionleft">Checkbox</div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
<div style="clear:both;"></div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
<div style="clear:both;"></div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
<div style="clear:both;"></div>
</div>
<div class="selection_list">
<div style="padding:3px; margin:3px; font-size:16px;"><strong>Title</strong></div>
<div class="selectionleft">Checkbox</div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
</div>
<div class="selection_list">
<div style="padding:3px; margin:3px; font-size:16px;"><strong>Title</strong></div>
<div class="selectionright"><strong>This is where some text will go</strong></div>
</div>
<div style="clear:both;"></div>
</div> <!--Close Main Wrapper -->
ここにCSSがあります
#wrapper {
width:1000px;
background-color:#ffffff;
margin: 0px auto 0px auto;
border-right-width:1px;
border-right-color:#fff;
border-right-style:solid;
border-left-width:1px;
border-left-color:#fff;
border-left-style:solid;
border-bottom-width:1px;
border-bottom-style:solid;
border-bottom-color:#fff;
-moz-border-bottom-left-radius: 7px;
border-bottom-left-radius: 7px;
-moz-border-bottom-right-radius: 7px;
border-bottom-right-radius: 7px;
}
.selection_list {
width:460px;
margin:10px;
padding:5px;
float:left;
background-color:#eeeeee;
-moz-border-radius: 15px;
border-radius: 15px;
}
.selectionleft{
float:left;
width:60px;
padding:0px;
margin:5px;
}
.selectionright{
float:left;
padding:8px;
margin:5px;
font-size:14px;
}