Link to home
Start Free TrialLog in
Avatar of ggivati
ggivati

asked on

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 ?
ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
GreenGhost,

curious where you found a link to the page?
In the tags. :)
Avatar of ggivati
ggivati

ASKER

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



ggivati,

you have not yet implemented the doctype suggestion.
Forced accept.

Computer101
Community Support Moderator
Avatar of ggivati

ASKER

It seems the problem is in IE 6. I have written a javascript code to fix width and length of the pictures.