943,891 Members | Top Members by Rank

Ad:
Jul 3rd, 2009
0

Please help with Browser Compatibility Gallery Script!!!!!PLEASE

Expand Post »
Hi everyone, i will try to explain this the best way i can. I am building a shopping website and i need to display new items and pictures on the home page in some kind of gallery that scrolls left to right on mouse over.
The gallery fetches images from a database using PHP and loops them out into a straight line. However i wanted to include the product details right below the image. The order is like this:

<div // wrapper div>
 <div>
   // product image goes here
 </div>
 <div>
  // product details go here
 </div>
</div // end of wrapper div>

i achieved this very well in firefox browsers and IE7 and above but IE6 is giving me a headache!!! can anyone please tell me what is wrong? The real script is here this:

// after using mysqli_query to $getImages //
while($row = $getImages->fetch_assoc()) {
				echo "<div style='display:inline-block;height:130px;position:relative;'>".
						"<div style=' height:150px; border-bottom:1px solid #CCCCCC; border-right:1px solid #CCCCCC;'>".
							"<a href='#'>";
				
				echo "<img src='http://mysite.com/IMAGES/products/large/".$row["image"]."' id='img_product_".$i."' border='0' >".
				
							"</a>".
						"</div>".
                                                // This is what i was trying to add //
						"<div style='display:absolute; bottom:0px; height:50px; border-right:1px solid #CCCCCC; background:#F4F4F4;'>".
							"<p style='font-size:10px; margin-left:23px;'>".$row["product_name"]."<br> <strong>$".$row["product_price"]."</strong><br>in ".$row["product_category"]."</p>".
						"</div>".
					"</div>";
				$i++;
			}

Firefox displays the images just fine (horizontally) but IE6 displays them vertically. Please help!!!!!! THANK YOU!!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
realnsleo is offline Offline
46 posts
since Apr 2007
Jul 3rd, 2009
0

Re: Please help with Browser Compatibility Gallery Script!!!!!PLEASE

Try using floats to position your divs.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Magicianer is offline Offline
12 posts
since Jul 2009
Jul 4th, 2009
0

Re: Please help with Browser Compatibility Gallery Script!!!!!PLEASE

Click to Expand / Collapse  Quote originally posted by realnsleo ...
"<div style='display:absolute; bottom:0px; height:50px; border-right:1px solid #CCCCCC; background:#F4F4F4;'>".

Firefox displays the images just fine (horizontally) but IE6 displays them vertically. Please help!!!!!! THANK YOU!!!!
Display has no "absolute" property.

Position:absolute might do some trick, but in my experience absolute positioning can create more problems than it solves.
Last edited by ingeva; Jul 4th, 2009 at 6:57 am.
Reputation Points: 16
Solved Threads: 9
Junior Poster
ingeva is offline Offline
106 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: 10 rare HTML Tag
Next Thread in HTML and CSS Forum Timeline: Expanding Iframes/divs background





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC