Re: [WSG] Set min-width using DOM

2005-10-24 Thread Al Sparber
Terrence Wood wrote: Thierry Koblentz said: Ian Rifkin wrote: It won't work if javascript is off. I'm not sure about that. I believe it still works with script disabled. It does up until XP SP2 where they changed the rules A site will have to be trusted for CSS expression to work where

Re: [WSG] Set min-width using DOM

2005-10-24 Thread Terrence Wood
Thierry Koblentz said: > Ian Rifkin wrote: >> It won't work if javascript is off. > > I'm not sure about that. > I believe it still works with script disabled. It does up until XP SP2 where they changed the rules A site will have to be trusted for CSS expression to work where JS is off. kind

Re: [WSG] Set min-width using DOM

2005-10-22 Thread Christian Montoya
Ok thanks all! -- C Montoya rdpdesign.com ... liquid.rdpdesign.com ... montoya.rdpdesign.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list &

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Philippe Wittenbergh
On 22 Oct 2005, at 2:53 pm, Lea de Groot wrote: On Sat, 22 Oct 2005 00:53:51 -0400, Christian Montoya wrote: width:740px; expression( fluid and max-width stuff ) Logically, I would expect this to work. Set the width to 740, then reset it with the expression. If the expression is inoperative

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Lea de Groot
On Sat, 22 Oct 2005 00:53:51 -0400, Christian Montoya wrote: > width:740px; > expression( fluid and max-width stuff ) Logically, I would expect this to work. Set the width to 740, then reset it with the expression. If the expression is inoperative then voila, its set to 740 I don't have time to t

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Christian Montoya
Ok, so my final questions is... is there a fallback for expression() ? Something in IE for expression that functions like for

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Stuart Sherwood
I first discovered these expressions quite some time ago. Sorry if I'm stealing anyone's thunder. http://www.svendtofte.com/code/max_width_in_ie/ Regards, Stuart ** The discussion list for http://webstandardsgroup.org/ See http://webstandards

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
Thierry Koblentz wrote: Al Sparber wrote: http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html With script disabled in IE6, the expression on the above page does not work. It seems to work fine for me, It most certainly does not work. Look closely, the page

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Thierry Koblentz
Al Sparber wrote: >> http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html >>> >>> With script disabled in IE6, the expression on the above page does >>> not work. >> >> It seems to work fine for me, > > It most certainly does not work. Look closely, the page is a mess to

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html With script disabled in IE6, the expression on the above page does not work. It seems to work fine for me, It most certainly does not work. Look closely, the page is a mess to begin with so it's hard to see.

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Thierry Koblentz
Al Sparber wrote: > Thierry Koblentz wrote: >> http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html >> Says: >> "The upper limit is enforced by a max-width on #sizer, and IEwin is >> included via an "expression" hidden in a Conditional Comment in the >> head. While this

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
Thierry Koblentz wrote: http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html Says: "The upper limit is enforced by a max-width on #sizer, and IEwin is included via an "expression" hidden in a Conditional Comment in the head. While this is a script, the user cannot disa

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
Thierry Koblentz wrote: http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html Says: "The upper limit is enforced by a max-width on #sizer, and IEwin is included via an "expression" hidden in a Conditional Comment in the head. While this is a script, the user cannot disa

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
Thierry Koblentz wrote: Al Sparber wrote: From: "Thierry Koblentz" <[EMAIL PROTECTED]> I'm not sure about that. I believe it still works with script disabled. It doesn't. http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html Says: "The upper limit is enforced by a

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Thierry Koblentz
Al Sparber wrote: > From: "Thierry Koblentz" <[EMAIL PROTECTED]> >> I'm not sure about that. >> I believe it still works with script disabled. > > It doesn't. http://www.positioniseverything.net/articles/sidepages/jello-piefecta-clean.html Says: "The upper limit is enforced by a max-width on #size

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
Michael Wilson wrote: Al Sparber wrote: Conditional comments only validate in the sense that the validator doesn't recognise them as anything other than comments and hence ignores the content. So, your page will validate against automated checking, but technically you are using invalid code T

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Michael Wilson
Al Sparber wrote: Conditional comments only validate in the sense that the validator doesn't recognise them as anything other than comments and hence ignores the content. So, your page will validate against automated checking, but technically you are using invalid code That's a real stretch

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
From: "Lachlan Hardy" <[EMAIL PROTECTED]> > Would something like this be appropriate and still validate? Conditional comments only validate in the sense that the validator doesn't recognise them as anything other than comments and hence ignores the content. So, your page will validate against a

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Al Sparber
From: "Thierry Koblentz" <[EMAIL PROTECTED]> I'm not sure about that. I believe it still works with script disabled. It doesn't. But if script is used to enhance a web page, rather than the page being dependent on the script, it is not an issue - and very few people run IE with script disable

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Nick Cowie
Paul Thankyou for that, it will be very usefull for a couple of projects I have. > The current test URL is here - http://d81314.i50.quadrahosting.com.au/ - One word of warning in IE6 at about 960px wide browser window the centre content drops below the calendar. It only happens in a small range s

RE: [WSG] Set min-width using DOM

2005-10-21 Thread Geoff Pack
o.k., so how do you go about setting both max- and min-width at the same time? I tried: width:80%; max-width:600px; min-width:400px; width:expression(((document.documentElement.clientWidth)) < 500 ? '400px' : '80%'); width:expression(((document.documentEl

Re: [WSG] Set min-width using DOM

2005-10-21 Thread Anders Nawroth
Thierry Koblentz skrev: Ian Rifkin wrote: The min-width was set using CSS expressions which only works in IE. It actually is javascript that makes it work, but it goes in the CSS (inline or external stylesheet). It won't work if javascript is off. I'm not sure about that. I believe

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Lachlan Hardy
Paul Noone wrote: > So we're very close here then? Pretty close :) > Would something like this be appropriate and still validate? Conditional comments only validate in the sense that the validator doesn't recognise them as anything other than comments and hence ignores the content. So, your pag

RE: [WSG] Set min-width using DOM

2005-10-20 Thread Paul Noone
e the centre column's content disapperas/drops from view. I've applied various new wave clearing solutions but it still does it. Any ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Montoya Sent: Friday, 21 October 2005 3:46 PM To: ws

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Christian Montoya
Thanks guys, that answers all my questions. @ Paul: Could you please give a link to your website where this is now working? Also, I'd like to add this as a resource to Liquid Designs. Will you be writing something on this, or could I just write something and give the credit to you? -- C Montoya r

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Thierry Koblentz
Ian Rifkin wrote: > The min-width was set using CSS expressions which only works in IE. It > actually is javascript that makes it work, but it goes in the CSS > (inline or external stylesheet). It won't work if javascript is off. I'm not sure about that. I believe it still works with script disabl

RE: [WSG] Set min-width using DOM

2005-10-20 Thread Paul Noone
So we're very close here then? Would something like this be appropriate and still validate? -Original Message- From: Lachlan Hardy G'day Christian, The expression code that Paul used (and which I often use myself) is proprietary to Microsoft. IE allows some Javascript within CSS files

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Lachlan Hardy
Christian Montoya wrote: > OK, now you have me very excited. Does this go in external > stylesheets? How's the support for IE browsers? Other browsers? Tell > me more. G'day Christian, The expression code that Paul used (and which I often use myself) is proprietary to Microsoft. IE allows some

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Ian Rifkin
The min-width was set using CSS expressions which only works in IE. It actually is javascript that makes it work, but it goes in the CSS (inline or external stylesheet). It won't work if javascript is off. It can work for min width or max width. Other browsers (mozilla based) don't recognize t

RE: [WSG] Set min-width using DOM

2005-10-20 Thread Paul Noone
It seems to work from IE 5.x up. Not in the Mac version but what does? ;) I've just added the line to the page container style in my primary stylesheet. Works like a treat and doesn't appear to affect Mozilla/Firefox. Haven't checked other browsers but am eager for feedback. -Original Messag

Re: [WSG] Set min-width using DOM

2005-10-20 Thread Christian Montoya
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Noone > Sent: Friday, 21 October 2005 2:10 PM > To: wsg@webstandardsgroup.org > 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 m

RE: [WSG] Set min-width using DOM

2005-10-20 Thread Paul Noone
[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 c