tags:

views:

8

answers:

1

I'm trying to resize an image in an XHTML 1.1 web page based on browser's height. So in the stylesheet I have

img {
    height: 100%;
}

This works fine in Chrome, but has no effect in Firefox. Any ideas?

A: 

That line means the height of the image should be 100% of it's containing area. Depending on your markup, this could simple be the images inherit height or the height of the parent element.

Jason McCreary