I need some help with sizing an image in height. My page is tzr.ro, and as you can see in some browsers such as explorer and chrome the image height differs. So i have this small piece of code that i need to adjust:

img {
max-width : 350px;
height : 100%;
border : none;

So if you could give me a hint on how to modify this, I'd appreciate it :)


What you want here is height: auto; - also, you should note that max-width isn't properly supported in IE6 (though, you may not care about IE6).

Thanks a lot, that did the trick :)

Great! Would you mind please marking this thread as "solved"? Cheers!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.