Erik Harris wrote:
> [...] Since I've got a minor problem with photos sticking out of 
> their parent elements over at 
> <http://www.kungfu-silat.com/history.html> (specifically, the first 
> photo on fairly high-res screens), I decided to try implementing its
>  sister-property, max-height.

Height of the container-div is an unknown factor in your case, so
setting 'max-height' on image in percentage of its container doesn't
work. Some javascript-based solutions may exist.

I'd rather solve it the other way around - making the container-div
stretch to contain the image even on wide windows. It'll come out just
fine then.

The addition of...
.section {overflow: hidden; height: 1%;}
...will do just that.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to