HighDots Forums  

Re: screen size detect - select CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: screen size detect - select CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VK
 
Posts: n/a

Default Re: screen size detect - select CSS - 11-11-2007 , 08:55 AM






On Nov 11, 5:21 pm, "dE|_" <d... (AT) crackguitar (DOT) com> wrote:
Quote:
Blimey, thanks for all that, I'll go through it all when the hangover clears
off.

Looks like you triggered a few thoughts in others!
The problem is:
User X loads your page with his browser taking only part of the
monitor. What will be the entire available canvas if the user maximize
the browser window?
AFAICT current JavaScript tools do not provide a solution for that.

As an esoteric mind game: a user with dual monitors carefully
stretching the window to the full extend from left to right instead of
just using "Maximize" option, so the browser takes both screens
instead of one. What would be that value in width and height? I don't
really care of such case from any practical point of view, but someone
has an insomnia... :-)

So I still would attribute your problem to
comp.infosystems.www.authoring.stylesheets rather than to clj

Maybe you may make a 400x600 (600x800, ...) central image with borders
having some repetitive pattern. Then you could use an image with such
pattern as background-image for body, and the image itself as
background-image for div aligned on the page vertically and
horizontally.



Reply With Quote
  #2  
Old   
Randy Webb
 
Posts: n/a

Default Re: screen size detect - select CSS - 11-11-2007 , 12:26 PM






VK said the following on 11/11/2007 9:55 AM:

[follow-up set to comp.lang.javascript]

Quote:
On Nov 11, 5:21 pm, "dE|_" <d... (AT) crackguitar (DOT) com> wrote:
Blimey, thanks for all that, I'll go through it all when the hangover clears
off.

Looks like you triggered a few thoughts in others!

The problem is:
User X loads your page with his browser taking only part of the
monitor. What will be the entire available canvas if the user maximize
the browser window?
AFAICT current JavaScript tools do not provide a solution for that.
I could play an "esoteric mind game" and give you this:

var maxSize = prompt("What is the maximum size, in pixels, that your
browser can be?")

But I won't. You seem to have figured out what at least two people have
been trying to tell you though. And it only took 11 posts.

Quote:
As an esoteric mind game: a user with dual monitors carefully
stretching the window to the full extend from left to right instead of
just using "Maximize" option, so the browser takes both screens
instead of one. What would be that value in width and height? I don't
really care of such case from any practical point of view, but someone
has an insomnia... :-)
Try sleeping pills. They don't work for me but might for you. As for the
browser stretching, you have forgotten virtual desktops as well. None of
which matter in the end. The simple point is that what the OP is wanting
to do in JS is a futile waste of effort.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.