incorrct image size using CSS height= and width=auto

I am building a website using CSS to define a common height to images and letting the browser decide on the width automatically.
The reason is that I have alot of pictures and I do not want to set each one in frontpage.
If you enter the any of the porducts for the first time, the height is correct but the width is not.
Press the link on the left to the same pageg - and it all sorts out ok.
Any ideas what I should do ?
ggivatiAsked:
Who is Participating?
 
Göran AnderssonConnect With a Mentor Commented:
First, get a doctype for your page.

http://www.w3.org/QA/2002/04/valid-dtd-list.html

I looked at the page in Firefox and Internet Explorer 7. The size of the images is completely different between the browsers, but I don't see the effect that you describe in any of them.
0
 
brunoCommented:
GreenGhost,

curious where you found a link to the page?
0
 
Göran AnderssonCommented:
In the tags. :)
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
ggivatiAuthor Commented:
The link is "testing.givati.eu".
I am using ie 6.
0
 
brunoCommented:
thanks GreenGhost, didn't see that.



ggivati,

you have not yet implemented the doctype suggestion.
0
 
Computer101Commented:
Forced accept.

Computer101
Community Support Moderator
0
 
ggivatiAuthor Commented:
It seems the problem is in IE 6. I have written a javascript code to fix width and length of the pictures.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.