jonnyfreak
07-16-2013, 12:55 PM
i have images set as backgrounds i a div ( thanks to Beverley )
<style type="text/css">
.prod-div{
width: 130px;
height: 130px;
background: no-repeat scroll center center transparent;
margin: 3px;
text-align: center;
border-right-width: 1px;
border-bottom-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-right-color: #666;
border-bottom-color: #333;
}
.prod-div img{
}
</style>
<a href="../images/uploads/<?php echo $row_rsCustomer['image']; ?>" rel="lightbox[<?php echo $row_rsCustomer['custID']; ?>]" title="<?php echo $row_rsCustomer['custLocation']; ?>"><div class="prod-div" style="background-image:('images/uploads/thumbs/<?php echo $row_rsCustomer['image']; ?>')"/div><img width="130" height="130" /></div>
but some images that are being uploaded have non text or numerical characters for example 042-Alexandra & Steven-0411373709523.JPG">
so are not showing in the div. i did test and if the characters are removed the images show. How can i get around this happening apart from rename all the images which isnt practical
thanks
Jon
<style type="text/css">
.prod-div{
width: 130px;
height: 130px;
background: no-repeat scroll center center transparent;
margin: 3px;
text-align: center;
border-right-width: 1px;
border-bottom-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-right-color: #666;
border-bottom-color: #333;
}
.prod-div img{
}
</style>
<a href="../images/uploads/<?php echo $row_rsCustomer['image']; ?>" rel="lightbox[<?php echo $row_rsCustomer['custID']; ?>]" title="<?php echo $row_rsCustomer['custLocation']; ?>"><div class="prod-div" style="background-image:('images/uploads/thumbs/<?php echo $row_rsCustomer['image']; ?>')"/div><img width="130" height="130" /></div>
but some images that are being uploaded have non text or numerical characters for example 042-Alexandra & Steven-0411373709523.JPG">
so are not showing in the div. i did test and if the characters are removed the images show. How can i get around this happening apart from rename all the images which isnt practical
thanks
Jon