sizes of images

yonahs

New Member
I am not sure if this belongs here or in Programming, but....

I am writing my site that has a bunch of pictures.
The thing is that I am making it as dynamic as possible for my client.
I am trying to make it that all they have to do is change, add, delete pictures from the folder on the server and the page will act accordingly.

Ok, that works fine in ASP.

If I just set the tag as <img src=1.jpg> it shows up huge, even though when I check the dimensions of the file in Windows, it is what I need it to be.

my problem is that I don't know the dimensions of the picture, as sometimes they will be Portrait and sometimes Landscape, so I can not set them in the code.

I hope I was clear enough.

Any thoughts.

Yoni
 

jnjc

New Member
Could be that there is some styling somewhere that is causing the images to display larger than they are, check you .css files for img references. If you are running FF use Firebug to inspect the image and see where it's getting it's style from.

Failing that post a link to the page and I'll have a look.

HTH,
JC
 

suz

New Member
When you say you check the dimensions of the file in Windows, what are you using to do that with?
 

yonahs

New Member
never mind.
Sorry, I discovered that one of the pictures was still big and was messing up the entire layout.
 
Top