|
Posted by Jonathan N. Little on 11/04/07 03:48
Bone Ur wrote:
> Well bust mah britches and call me cheeky, on Sun, 04 Nov 2007 02:53:32
> GMT Jonathan N. Little scribed:
>
>> I think dorayme is right here, server-side would have no idea what
>> available size with respect to the browser. I think it would require
>> some nasty JavaScript to calculate the available space and reposition
>> the contents. And of course would also have to hook the onresize to do
>> the process all over again if the user resizes the browser... yuck!
>
> Not necessarily. One could use string-length of (record/row), converting
> the max to an em number with a reasonable amount of leeway/slop, then float
> the tables/containers themselves. The number of containers would be to
> taste, -sensible, of course, and their max-width would need to be a
> suitable fraction of typical screenwidth. This might break with super-
> large font-sizes, but most things do, anyway.
>
But you cannot get the browser viewport via server-side. This is a
client-side job. Also you need to know the height, not the width inorder
to "wrap" to the next column as the OP wishes...more fun...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|