min-width and IE6
-
I need a div to grow as the text size is increased for accessibility purposes. I got it working fairly well using IE7, but the page has 3-times the hits in IE6. The solutions I have discovered so far are using a percentage of a containing div for the width (ie width: 90%, where I want it to be at least 90% of the container - which pretty much works), and an invisible element that is the minimum width i need. That way the div can grow if need be, but the div will never get smaller than the invisible item. These ideas seem pretty hackish and I would rather have a clean solution (if its possible). I am interested to know if anyone has any better solutions.
Matt Newman
-
I need a div to grow as the text size is increased for accessibility purposes. I got it working fairly well using IE7, but the page has 3-times the hits in IE6. The solutions I have discovered so far are using a percentage of a containing div for the width (ie width: 90%, where I want it to be at least 90% of the container - which pretty much works), and an invisible element that is the minimum width i need. That way the div can grow if need be, but the div will never get smaller than the invisible item. These ideas seem pretty hackish and I would rather have a clean solution (if its possible). I am interested to know if anyone has any better solutions.
Matt Newman
You can sometimes get by with something along the lines of
width: expression(clientWidth < 200 ? 200 : 'auto');
Falls apart pretty easily, but in tightly-controlled scenario it can suffice.----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
-
You can sometimes get by with something along the lines of
width: expression(clientWidth < 200 ? 200 : 'auto');
Falls apart pretty easily, but in tightly-controlled scenario it can suffice.----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
Shog9 wrote:
You can sometimes get by with something along the lines of width: expression(clientWidth < 200 ? 200 : 'auto'); Falls apart pretty easily, but in tightly-controlled scenario it can suffice.
Eeesh, Looks like there isn't a "good" solution to this problem... Stupid IE6
Matt Newman