I have an image container with height 100% and an image fitting the height (made with display:inline). What I wanna do now is making the container width shrink to fit the resized image.
The Problem: The container shrinks to the ORIGINAL Size of the image, not the resized version.
I found a solution. Now the container behaves the way I want it. The pictures are resized dynamically according to the given height. The container resizes according to the width of all pictures. The only thing left is that in case that the user is changing the window size, the site has to be reloaded (Can be done with js). If someone has got a better solution, please let me know.
http://jsfiddle.net/EdgKr/9/