Ross, your width should be set in % or be equal to "auto".

Gunlaug's solution (set the with in ems) is a good (you can read then:
"Elastic design" http://alistapart.com/articles/elastic/)

You can also set the width in % and the max-width in ems, the
min-width remaining in pixels. I use this solution to handle elastic
designs, because width in ems can easily lead to a horizontal scroll
bar.

Believe it or not, but if IE7 is working in "standard mode", it will
understand that (it won't in quirks mode).

Amitiés



2006/9/26, Gunlaug Sørtun answered to Ross:
> > http://blue-fly.co.uk/tri/test.php
>
> > When I increase the text I would like the div to expand to fit the
> > suckerfish dopdown in it. The problem is if I ser max-width and
> > min-width the box does not expand.
>
> The element won't expand if you set 'width' in pixels. The 'max-width'
> and 'min-width' do nothing in your example.
>
> If you want the element to expand with font-size, then you must set
> 'width' in ems. You can then set a suitable 'max-width', and maybe also
> a 'min-width', in pixels if you like, or omit those properties.

-- 
Philippe  DE MOURA
 ><> phdm ><>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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