Re: [WSG] Max/min width for IE

2006-04-11 Thread Joseph Bernhardt
Eww!  Using HTML elements to solve a display issue?  I know where you 
are coming from, I have had 'clients' like this before, too.


I have had to use MS CSS expressions to solve the issue of position 
fixed and found it relatively easy to use, although I would have rather 
not used it had there been another way.  As far as min/max width, have 
you tried placing a nested div within the area to be min-width'd with 
padding of the amount to be width'd and contents of a non-breaking 
space?  Sound's like that might work to me, anyone else?


Jough


Ricci Angela wrote:

Hello everybody

Following the late discussion about fluid/elastic layouts, I was wondered if 
somebody out there has some feedback concerning the use of Microsoft's Dynamic 
properties proprietary solution for fixing the lack of min/max-width support.
After some discussion with my client, they impose me the use of a 
one-cell table to fix this for IE, but I really think it is a pitty to have to do it... 
And, besides a javascript solution, all I've found out was MS dynamic properties. If 
somebody already used those, please could you share your experiences ?

Thanks a lot
Angela
**
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
**



Re: [WSG] Max/min width for IE

2006-04-11 Thread Anders Nawroth


Ricci Angela skrev:

Following the late discussion about fluid/elastic layouts, I was wondered if 
somebody out there has some feedback concerning the use of Microsoft's Dynamic 
properties proprietary solution for fixing the lack of min/max-width support.
  
To use JScript inside CSS for IE works good, as long as scripting is 
enabled.


I do max-width in ems this way:
HTML (ignored by other browsers):

!--[if lt IE 7]span id=em—/span![endif]--

CSS (served for IE only with conditional comments in the head section 
of the HTML):

#wrapper
{
width: 740px;
width:expression(
(document.getElementById(em).offsetWidth*59 
document.body.clientWidth) ? 59.5em : auto
);
}

The span should be inside the element you want to set max-with on (to 
make the width of the em-dash correct).


Live example:
http://www.forum-antroposofi.info/

Not tested with IE in quirks mode.

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

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



Re: [WSG] Max/min width for IE

2006-04-11 Thread Joseph Bernhardt
W3C - Tables should not be used purely as a means to layout document 
content as this may present problems when rendering to non-visual media. 
Additionally, when used with graphics, these tables may force users to 
scroll horizontally to view a table designed on a system with a larger 
display. To minimize these problems, authors should use style sheets 
../present/styles.html to control layout rather than tables.


Using a table in this case will not present any problems, no.  But 
(correct me if I am wrong), the main purpose of a table was originally 
designed to display a relationship between multiple sets of data (ie: 
spreadsheet).  A table can, in fact, be used for display purposes when 
containing relevant data but for the problem at hand I am sticking with 
my recommendation of a div. 


Thanks though!

Jough

Samuel Richardson wrote:

Might as well just use a table in that case.


Joseph Bernhardt wrote:
Eww!  Using HTML elements to solve a display issue?  I know where you 
are coming from, I have had 'clients' like this before, too.


I have had to use MS CSS expressions to solve the issue of position 
fixed and found it relatively easy to use, although I would have 
rather not used it had there been another way.  As far as min/max 
width, have you tried placing a nested div within the area to be 
min-width'd with padding of the amount to be width'd and contents of 
a non-breaking space?  Sound's like that might work to me, anyone else?


Jough


Ricci Angela wrote:


Hello everybody

Following the late discussion about fluid/elastic layouts, I was 
wondered if somebody out there has some feedback concerning the use 
of Microsoft's Dynamic properties proprietary solution for fixing 
the lack of min/max-width support.
After some discussion with my client, they impose me the use 
of a one-cell table to fix this for IE, but I really think it is a 
pitty to have to do it... And, besides a javascript solution, all 
I've found out was MS dynamic properties. If somebody already used 
those, please could you share your experiences ?


Thanks a lot
Angela
**
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
**



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



Re: [WSG] Max/min width for IE

2006-04-11 Thread Samuel Richardson
Yes but he's talking about using a DIV to force open an area of the 
page. It doesn't matter if you use a div or a table because in both 
cases you're using an HTML element as presentation (even if you can't 
see it).



Joseph Bernhardt wrote:
W3C - Tables should not be used purely as a means to layout document 
content as this may present problems when rendering to non-visual media. 
Additionally, when used with graphics, these tables may force users to 
scroll horizontally to view a table designed on a system with a larger 
display. To minimize these problems, authors should use style sheets 
../present/styles.html to control layout rather than tables.


Using a table in this case will not present any problems, no.  But 
(correct me if I am wrong), the main purpose of a table was originally 
designed to display a relationship between multiple sets of data (ie: 
spreadsheet).  A table can, in fact, be used for display purposes when 
containing relevant data but for the problem at hand I am sticking with 
my recommendation of a div.

Thanks though!

Jough

Samuel Richardson wrote:


Might as well just use a table in that case.


Joseph Bernhardt wrote:

Eww!  Using HTML elements to solve a display issue?  I know where you 
are coming from, I have had 'clients' like this before, too.


I have had to use MS CSS expressions to solve the issue of position 
fixed and found it relatively easy to use, although I would have 
rather not used it had there been another way.  As far as min/max 
width, have you tried placing a nested div within the area to be 
min-width'd with padding of the amount to be width'd and contents of 
a non-breaking space?  Sound's like that might work to me, anyone else?


Jough


Ricci Angela wrote:


Hello everybody

Following the late discussion about fluid/elastic layouts, I was 
wondered if somebody out there has some feedback concerning the use 
of Microsoft's Dynamic properties proprietary solution for fixing 
the lack of min/max-width support.
After some discussion with my client, they impose me the use 
of a one-cell table to fix this for IE, but I really think it is a 
pitty to have to do it... And, besides a javascript solution, all 
I've found out was MS dynamic properties. If somebody already used 
those, please could you share your experiences ?


Thanks a lot
Angela
**
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
**



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



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

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