There is no standard method for this on the browser or the server, and 
generally trying to code for this is bad practice anyways.
 
Imagine, for a second, that you did some sort of magic to get the dimensions 
and depth, which you then pass to the server which returns the page with the 
necessary styles defined.  Now the browser has displayed/rendered the page, and 
the user manually changes the size of the window (maximize, minimize, restore), 
the color depth, etc.  None of these things automagically cause a page reload, 
so all of that complicated stuff you went through to get a pretty page at some 
resolution now looks like crap.
 

-----Original Message-----
From: Adrian Mitev [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 03, 2007 10:39 AM
To: MyFaces Discussion
Subject: How to get client browser's resolution.


Hi all! I want to get the width and height of the client brower and show 
different css styles according to the size. Any suggestions how to do it? 

Reply via email to