PDA

View Full Version : Reading a web visitors browser size


colbtech
Jul 31, 2011, 02:06 AM
I'm trying to create a web page that I would like to be able to view on any size browser. Is there a script or some sort of trick that I can read the visitors browser size before displaying?

FadedMaster
Jul 31, 2011, 10:00 PM
This can be done with JavaScript.

http://www.javascripter.net/faq/browserw.htm

Back in the day I used to just design my sites to fit on 800x600, but now most people have at least a 1024x768 resolution. So that's one thing you can always go by.

colbtech
Aug 1, 2011, 12:12 AM
That's great, thank you. I'm surprise that CSS doesn't have a [centre command] that reads the browser. Will give this a try.