Hi,
I have php page wherein I am retrieving images from the database and displaying them. The images are of different sizes hence i want to resize the images without them being distorted. I used the following code:
<style type = "text/css">
.faculty-image {
max-width: 99px;
border: 1px solid #999;
}
* html .faculty-image { width: 99px; height: 100px}
</style>
<?php
//connected to the db and retrieved the images
$rep='<class = "/faculty-image/" />';
$image=str_replace("/>",$rep,$img);
//have done the above as the image field retrieved is of the form <img src="/abc.jpg" title="abc" alt="abc" height="235" width="235" />
echo $image;
?>
But the images are not displayed in an uniform manner.
Please guide me on this.Thanks