mamachika
01-31-2007, 05:06 PM
hello,
I want to show a list of items each one includes an image, and text beside it. Here is the code for each item:
<div style="width:500px; padding-bottom:10px; border-bottom:0.05em dashed #5D739A;">
<div style="float:left; margin: 5px 2px 2px 2px;">
<img src='http://www.ha-lool.co.il/uploads/Gen_46/19012007212342~@~flower.jpg' ALT='הלול התחדש במראה ובתוכן'>
</div>
<div style="clear:right; padding:1px 2px 5px 5px">
<h3>Flowers garden</h3>
<p style="margin:0 10px 10px;">This a short text. I'll write a few more words, blah blah blah.</p>
</div>
</div>
My problem is in cases the text is to short to reach the end of the image. In this case, the border of the first div is showing below the text, instead of showing below the image. How do I fix this?
I want to show a list of items each one includes an image, and text beside it. Here is the code for each item:
<div style="width:500px; padding-bottom:10px; border-bottom:0.05em dashed #5D739A;">
<div style="float:left; margin: 5px 2px 2px 2px;">
<img src='http://www.ha-lool.co.il/uploads/Gen_46/19012007212342~@~flower.jpg' ALT='הלול התחדש במראה ובתוכן'>
</div>
<div style="clear:right; padding:1px 2px 5px 5px">
<h3>Flowers garden</h3>
<p style="margin:0 10px 10px;">This a short text. I'll write a few more words, blah blah blah.</p>
</div>
</div>
My problem is in cases the text is to short to reach the end of the image. In this case, the border of the first div is showing below the text, instead of showing below the image. How do I fix this?