One on the left to hold a product image, one on the right to hold all of the product data.
The div on the left needs to be a static 135px wide and the div on the right needs to consume the remaining space and stretch with the browser.
What happens now, if the div on the right pops under the div on the left.
So the div on the left is set to width:135px; but what do I set the width on the div to the right to in order to have it consume 100% of the rest of the space without popping below the div on the left?
On the column to the right in the center… you see the big ass gap between the add to cart button and the mini description? I can’t seem to figure out why that is happening. Driving me nuts
added that to the css and irt didn’t change anything, which is really odd.
I would prefer to just remove it but I can’t seem to find where in this magento software is sooo sliced and diced over thousands of files… it’s gotta be somewhere
In the future always post a linki in your first post-your problem just happened to be easy enough to figure out hte answer without needing a link (for your first problem anyway)
ok well actuall come to find out it DOES need to be there. So added the code back as <div style="clear:both; "></div> and the huge gap comes right back
I tried that too right in the div tag and it didn’t seem to effect it. I have no idea why but the breaks seem to work thus far. Thanks again for your help, I really appreciate it.
ahh interesting point, so it’s shoving it to bottom of the photo. Maybe I should relay the stuff out in a table. I just hate to have all that code repeated over and over.
You need to use a new block formatting context to control the floats and sibling elements (hasLayout in older IEs). Remove that clearing div for the reasons already mentioned.
Here is a working model, incorporating these methods.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en">
<head>
<meta name="generator"
content=
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title>...</title>
<style type="text/css">
/*<![CDATA[*/
body {}
.listing-item {
border-top:1px solid #D9DDE3;
overflow:hidden;
padding:12px 10px;
zoom: 1; /* for IE<8 */
}
.product-image {
float:left;
width:135px;
}
.product-shop {
margin-left:200px; /* delete if you want this to abut image */
overflow:hidden;
zoom: 1; /* sets hasLayout for IE<8 */
}
/*]]>*/
</style>
</head>
<body>
<div class="listing-item">
<div class="product-image">
<a href=
"http://www.gophertelecom.com/norstar-616-phone-system-nt5b01.html"
title="Norstar 616"><img src=
"http://www.gophertelecom.com/media/catalog/product/cache/1/small_image/135x135/5e06319eda06f020e43594a9c230972d/t/1/norstar616ksu.jpg"
width="135"
height="135"
alt="Norstar 616"
title="Norstar 616" /></a>
</div>
<div class="product-shop">
<h5><a href=
"http://www.gophertelecom.com/norstar-616-phone-system-nt5b01.html"
title="Norstar 616 Phone System NT5B01">Norstar 616 Phone
System NT5B01</a></h5>
<div class="price-box">
<span class="regular-price"
id="product-price-27"><span class=
"price">$0.00</span></span>
</div><button class="form-button"
onclick=
"setLocation('http://www.gophertelecom.com/checkout/cart/add/uenc/aHR0cDovL3d3dy5nb3BoZXJ0ZWxlY29tLmNvbS9waG9uZS1zeXN0ZW1zLmh0bWw,/product/27/')"><span>Add
to Cart</span></button>
<!-- <div class="clear"></div> -->
<!-- delete the following element -->
<!-- <div style="clear:both; height:0; overflow:hidden;"></div> -->
<div class="description">
Discontinued in 1995, 6x16 Phone System. <a href=
"http://www.gophertelecom.com/norstar-616-phone-system-nt5b01.html"
title="Norstar 616 Phone System NT5B01"><small>Learn
More</small></a>
</div>
<p class="add-to"><a href=
"http://www.gophertelecom.com/wishlist/index/add/product/27/"
class="link-cart">Add to Wishlist</a> <span class=
"pipe">|</span> <a href=
"http://www.gophertelecom.com/catalog/product_compare/add/product/27/uenc/aHR0cDovL3d3dy5nb3BoZXJ0ZWxlY29tLmNvbS9waG9uZS1zeXN0ZW1zLmh0bWw,/">
Add to Compare</a></p>
</div>
</div>
</body>
</html>