954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

CSS image sizing

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 :)

Thanks!

seularts
Light Poster
35 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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).

scottloway
Junior Poster in Training
55 posts since May 2008
Reputation Points: 22
Solved Threads: 12
 

Thanks a lot, that did the trick :)

seularts
Light Poster
35 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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

scottloway
Junior Poster in Training
55 posts since May 2008
Reputation Points: 22
Solved Threads: 12
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: