I have been having a simular idea tinkering around in the back of my  
head, but to my knowledge there is no css behaviour that will let you  
adjust content by the reading the hight of the browser window. I  
don't know javascript very well, but I'm retty sure it can solve that  
problem. If you know any JS that could be the way. Also let me know  
if you find out, I'd love to put my ideas into real world :)

eystein

On Nov 19, 2005, at 1:35 AM, Ann Adamcik wrote:

> Hi,
>
> I have a page with a 1000x700px background image set
> on a main div.  If the browser is large enough, I want
> the whole image to show.  If the browser is resized
> smaller, I would like the image to be cropped, without
>
> scrollbars, down to a minimum size of 530x550.
>
> I'm getting the behavior I want on the width by
> setting
> min-width and max-width.  However, min- and max-height
> are not doing the same - it just fixes the height of
> the
> div at the min-height setting.
>
> Does anyone have a way to get the height of a div to
> resize
> with the browser in the same way as the width?
>
> You can see what I'm doing here:
>
> http://indigopear.com/vanduuren/height-test.html
>
> Thanks!
>
> -Ann
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to