Forum Moderators: not2easy
<div id="content">
<div id="item-left">
<img src="product.jpg" alt="product name" id="product">
<p><b>Stock ID:</b> ...<br><b>Price:</b> £149.99<br><span id="in-stock">In Stock</span></p>
</div>
<div id="item-right">
<p>Product info which varies in size.</p>
</div>
</div>
#content { width: 668px; min-height: 311px; padding: 10px; border-left: 1px solid #6CF; border-right: 1px solid #6CF; border-bottom: 1px solid #6CF; margin: 0 0 15px 0; }
#item-left { width: 310px; float: left; }
#item-right { width: 348px; float: right; padding: 0 0 0 10px; }
img#product { display: block; padding: 4px; border: 1px solid #F33; float: left; margin: 0 0 10px 0; }
The only browser this displays correct in is IE8 - for once.
Again, thanks in advance,
Tom.
Alias, that worked perfectly. Thank you very much! I'll be sure to learn what those tags do in more depth.I know that. Hope you do now. Just remember to clear your floats when necessary.
MP, the reason the two divs fall 10px short is because of the 10px margin that keeps them apart.