Yes, there is. It's called HTML.

You might think me daft, but HTML was actually created to allow the page to 
adapt to screen size. The oldest technology on the block is actually the 
thing to use in this situation, otherwise you're just creating extra work for 

A simple example:

<table width="800px"> - This works great, looks great, until you have a 
640x480 screen. Instead, try this:

<table width="80%">  (this scales according to screen size)


<table> (this scales according to content size + screen size)

It really sounds like this is a problem with your web page design, not php or 

However, you could indeed do as others suggested and create multiple pages.. 
That really sounds like more work than it's worth though. 


On Monday 06 February 2006 1:38 am, JeRRy wrote:
> Yes I know this but there is no script that can re-write webpages on the
> fly for certain resolutions?
>   Instead of re-doing each page for each res.?
>   With the technology these days I thought someone would of created
> something like this, so you create a website than you put it through a
> program that re-does the HTML for the resolutions you set and bingo the
> results are spat out and you add it to the site and use a little script to
> redirect depending on their set resolution.
>   Jerry
> PHP Superman <[EMAIL PROTECTED]> wrote:
>   Or you can have a page which detects resolution by javascript and
> redirects to another PHP page with the resolution data
>   On 2/4/06, Bastien Koert <[EMAIL PROTECTED]> wrote:
> As the other poster mentioned you need JS to detect the screen width....the
> usual approach is to use js to detect the screen res and the include the
> appropriate CSS file to match the screen res.
> Bastien
> >To:
> >Subject: [PHP-DB] screen resolution!
> >Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST)
> >
> >Hi,
> >
> >   I have written a website in PHP using MYSQL.  But I have come accross
> > an un-common problem.  Normally when I create a website it's done on a
> > desktop PC.  But this time for the first time I did it on laptop meaning
> > the screen resolution is different.
> >
> >   Is there any sort of script/code I can use to create another section of
> >my site in a desired screen resolution without me having to do it all
> >manually?
> >
> >   I know of many scripts online that I can DETERMINE visitors screen
> >resolutions and recommend the correct one but don't know one that will
> >adjust the website to suit that visitors screen resolution.  Am aware of
> >scripts that redirect to another web page but that requires you to write
> >the website again to cater for that.
> >
> >   Is there a quicker way/solution?
> >
> >   Thanks!
> >
> >   J
> --
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to