Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

incorrct image size using CSS height= and width=auto

Posted on 2007-12-06
8
Medium Priority
?
1,380 Views
Last Modified: 2012-06-27
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 ?
0
Comment
Question by:ggivati
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 2000 total points
ID: 20423931
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
 
LVL 18

Expert Comment

by:bruno
ID: 20424152
GreenGhost,

curious where you found a link to the page?
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20424293
In the tags. :)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ggivati
ID: 20424316
The link is "testing.givati.eu".
I am using ie 6.
0
 
LVL 18

Expert Comment

by:bruno
ID: 20459124
thanks GreenGhost, didn't see that.



ggivati,

you have not yet implemented the doctype suggestion.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20953137
Forced accept.

Computer101
Community Support Moderator
0
 

Author Comment

by:ggivati
ID: 22646289
It seems the problem is in IE 6. I have written a javascript code to fix width and length of the pictures.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question