Posted by David Dorward on 12/18/06 13:46
Carolyn Marenger wrote:
> Last time I checked there was no way of determining viewport sizes. Has
> there been any change?
Here's a post from 1997 that describes how to find that out:
http://groups.google.com/group/comp.lang.javascript/msg/f1c8d5b54fe95524
> I like using three column layouts, but that breaks down when using narrow
> viewports. I would like to have a page that uses a three column layout for
> anyone with a specific minimum width viewport, and have the layour (via
> CSS) downgrade to a two or one column layout for those with narrow
> viewports.
If you go down that route, then I suggest you pick one layout as a
default, and have a <link> document.written that overrides it under the
circumstances you define. (I wouldn't leave non-JS users with no style
at all).
[Back to original message]
|