[Zope3-dev] Re: [ZWeb] nzo: just for inspiration

Shane Hathaway shane@zope.com
Sat, 22 Mar 2003 13:48:02 -0500


On 03/22/2003 01:09 PM, Alexander Limi wrote:
>> It should have an automatic minimum width.  When rendered too narrow, 
>> a horizontal scroll bar should appear.  Horizontal scroll bars are 
>> less evil than overlapping text.
> 
> 
> You can control this with the min-width and overflow CSS properties to 
> respectively limit the minimum width the column can get, or cause it to 
> get a horizontal scrollbar when the content is too big to fit the window 
> size.

Is there such a thing as "min-width: auto"?  In Zope, the minimum width 
can't be a certain number of pixels nor a certain percentage of the 
browser window width.  The minimum width should be whatever it takes to 
fit the content without overlapping, which can't be known ahead of time. 
  The HTML table layout algorithms are messy and complex, but they solve 
problems like this more reliably than CSS tables.

I'll note that this issue doesn't actually bother me much.  If text 
overlaps, people can just make their browser window bigger. :-) 
However, it's just one more reason that I see CSS tables as a loss 
rather than a gain, so in my own designs I will continue to use normal 
tables.

Shane