有沒有辦法讓我把4個div對齊起來,這樣他們都整齊地內聯,我有一個div的圖像,另一個圖像的header,文本和其他單獨的div的另一個圖像,但是我希望它們大家看起來一致。見fiddle將幾個div對齊
<div id="christmas_product_boxes">
<div id="christmas_mattress">
<img src="http://blog.applause.com/wp-content/uploads/2013/05/one_star.jpg" height="100px" width="100px">
</div>
<div id="christmas_pillows">
<img src="http://blog.applause.com/wp-content/uploads/2013/05/one_star.jpg" height="100px" width="100px">
</div>
<div id="christmas_beds">
<img src="http://blog.applause.com/wp-content/uploads/2013/05/one_star.jpg" height="100px" width="100px">
</div>
</div>
<br>
<br>
<div id="christmas_product_boxes_title">
<div id="christmas_mattress_title">
<h2>Title 1</h2>
</div>
<div id="christmas_pillow_title">
<h2>Title 2</h2>
</div>
<div id="christmas_beds_title">
<h2>Title 3</h2>
</div>
</div>
<div id="christmas_product_boxes_text">
<div id="christmas_mattress_text">
<p>This is some text in a p tag!! <br>This is some text in a p tag!! <br>This is some text in a p tag!!</p>
</div>
<div id="christmas_pillow_text">
<p>This is some text in a p tag!! <br>This is some text in a p tag!! <br>This is some text in a p tag!!</p>
</div>
<div id="christmas_beds_text">
<p>This is some text in a p tag!! <br>This is some text in a p tag!! <br>This is some text in a p tag!!</p>
</div>
</div>
<div id="christmas_product_boxes_buttons">
<div id="christmas_mattress_button">
<a href="#"><img src="http://www.downloadclipart.net/large/253-button-blue-design.png" height="30px" width="30px"></a>
</div>
<div id="christmas_pillow_button">
<a href="#"><img src="http://www.downloadclipart.net/large/253-button-blue-design.png" height="30px" width="30px"></a>
</div>
<div id="christmas_beds_button">
<a href="#"><img src="http://www.downloadclipart.net/large/253-button-blue-design.png" height="30px" width="30px"></a>
</div>
</div>
以何種方式保持一致?你想如何安排他們? – Guffa