PDA

View Full Version : Detecting user's screen size and fit web pages?



Selene
02-03-2005, 10:22 PM
HI!!

can somebody tell me how to Detect user's screen size and fit webpages depending on screen size and resolution using some Javescript? :confused:

thank you!!

mwinter
02-03-2005, 11:28 PM
can somebody tell me how to Detect user's screen size and fit webpages depending on screen size and resolution using some Javescript?The resolution of a user's monitor bears no real relationship to the viewport size other than the latter can be no larger than the former. Though you can get the information you think you want, and you can use Google (http://www.google.com/) for that, it won't really mean anything.

The Web is a flexible medium. Unlike the world of print, there are no sizes for which you should design. There are plenty of resources (http://www.allmyfaqs.com/faq.pl?AnySizeDesign) which suggest a better approach.

Mike