Previous Message
Next Message

Maintaining proportions of a div when resizing (A solution)

Sent by Gunlaug_Sørtun on 15 January 2006 19:07


Ingo Chao wrote:
> Leszek Swirski wrote:

>> #inner { position: absolute; top: 0; bottom: 0; width: 100%; 
>> height: 200%; }

> /*\*/ * html #inner {height: 200%;} /**/

And the "crazy reason" IE/win needs that height in the first place, is
that IE/win can't handle AP for opposite edges of an element.
IE/win can't make inner fill outer in accordance with specs - without a
"push".

Now all that's needed is an 'overflow: auto;' on inner, in case it
becomes too small.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: