does anyone know how I set all my pics in a table to the same size? I have a form that pulls pic paths from an mysql db. The problem is the pics are different sizes. How do I make them uniform?
Thanks,
Denise
picture size in tables
Moderator: General Moderators
-
samscripts
- Forum Commoner
- Posts: 57
- Joined: Tue Apr 23, 2002 4:34 pm
- Location: London, UK
Hi Denise,
if you just want to display the pics the same size, i think you can just specify it in the <img> tag like this:
or using code you posted before:
(assuming you want the images to be 120x120)
The only problem with this is if the images are not all in proportion - some of them will end up looking squashed.
hope this helps,
Sam
if you just want to display the pics the same size, i think you can just specify it in the <img> tag like this:
Code: Select all
<img src="yourpicture.jpg" width="thewidthyouwantdisplayed" height="theheightetc">Code: Select all
echo "<img src="http://www.umuc.edu/~em680a10/" . $rowї"image"] . "" border="0" width="120" height="120">";The only problem with this is if the images are not all in proportion - some of them will end up looking squashed.
hope this helps,
samscripts wrote:Hi Denise,
if you just want to display the pics the same size, i think you can just specify it in the <img> tag like this:
or using code you posted before:Code: Select all
<img src="yourpicture.jpg" width="thewidthyouwantdisplayed" height="theheightetc">
(assuming you want the images to be 120x120)Code: Select all
echo "<img src="http://www.umuc.edu/~em680a10/" . $rowї"image"] . "" border="0" width="120" height="120">";
The only problem with this is if the images are not all in proportion - some of them will end up looking squashed.
hope this helps,Sam
Sam - awesome - works like a charm. .....Thanks!!!
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
I agree with mydimensin
I am a huge CSS fan as well, definately go with mydimension on this one.
Also, DON'T FORGET YOUR SEMICOLENS AT THE END OF EACH PROPERTY
.
Also, DON'T FORGET YOUR SEMICOLENS AT THE END OF EACH PROPERTY
Code: Select all
table img {
width: /* the size you want */ ;
height: /* the size you want */ ;
}