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-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-22 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

Re: [WSG] Set min-width using DOM

2005-10-22 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 Paul Noone
/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: wsg@webstandardsgroup.org Subject: Re: [WSG] Set min

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-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%');

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

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 disabled.

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

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
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

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 #sizer, and

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 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

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

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 is a script,

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: 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

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 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

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 noscript for script? What I am thinking of is that if someone using IE doesn't have expression(), you may want to give them a fixed width layout as backup. Something like:

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

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

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 Paul Noone
So we're very close here then? Would something like this be appropriate and still validate? !--[if IE] style type=text/css@import IE-override.css;/style ![endif]-- -Original Message- From: Lachlan Hardy G'day Christian, The expression code that Paul used (and which I often use

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