...

View Full Version : layer to image



thoford75
10-16-2009, 08:00 PM
Hi people! Quick question how can I change this code so that it displays the image as an image as opposed to an layer?



<div style="position: relative;"><div id="product-image" style="background-image:url(/images/products/<?php echo $product_image; ?>);"></div><?php if ($range_on_sale == 'Y') { ?><div id="sale-now-on"><?php echo $range_sale_discount; ?>% off</div><?php } ?></div>


Thanks in advance!

mlseim
10-17-2009, 04:29 AM
<div style="position: relative;">
<div id="product-image">
<img src="/images/products/<?php echo $product_image;?>" style="border:0;" alt="" title="" />
</div>
<?php
if ($range_on_sale == 'Y') {
echo"<div id='sale-now-on'>$range_sale_discount;% off</div>";
}
?>
</div>

barkermn01
10-18-2009, 12:26 AM
<div style="position: relative;">
<div id="product-image">
<img src="/images/products/<?php echo $product_image;?>" style="border:0;" alt="" title="" />
</div>
<?php
if ($range_on_sale == 'Y') {
echo"<div id='sale-now-on'>$range_sale_discount;% off</div>";
}
?>
</div>


this maybe using php but that is basic HTML man,

<img for image & <div = a box you can play with

mlseim
10-18-2009, 05:42 AM
this maybe using php but that is basic HTML man,

<img for image & <div = a box you can play with


What does this mean?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum