[update]

If I can tear people away form the complex form issue for a moment... ;)

The expression does work, the syntax was simply wrong as a result of copying
the text from a website. I had ` instead of '. Doh!

So, for those who want an IE min-width solution, this is your baby IMO. One
line of code applied to the parent container. Too easy. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Noone
Sent: Friday, 21 October 2005 2:10 PM
To: [email protected]
Subject: [WSG] Set min-width using DOM

Hi,

I know the jello tchnique and others have more or less effectively dealt
with the problem of min-width in IE but they all require the use of multiple
DIVs and heavily adjsuting your layout to suit.

I've also looked at and discarded javascript solutions for the moment
because I want to avoid hacks and remain accessible as possible.

To that end it seemed that using the DOM *should* be a far more
straightforward approach.

I've applied the following line to my main container DIV's style.

        #pagewidth{ 
                max-width:100%;
                min-width:780px;
                width: expression(((document.documentElement.clientWidth)) <
800 ? '780px' : 'auto');
                }

But she no work. Anyone got any idea why or what I can do to fix it?

Cheers!

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to