Results 1 to 3 of 3

Thread: Redirect for handhelds to smaller page.

  1. #1
    Join Date
    May 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Redirect for handhelds to smaller page.

    We design to 800 x 600. A few of our clients use the 640 x or 1024 x and many are now using handhelds. I'd like to detect the screen size or resolution for the sake of the handheld devices and deliver a different page. The page would be optimized for their screen size so that it did not scroll left and right.

    Can you help?

    Paul

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Try:

    Screen Size Redirect Script

    From what you say, it should be just about perfect. If you need to add other resolutions than those covered, it is pretty straight forward but, if you need help, let us know.

    One note though, designing a page to fit 800px to 1152px widths is not all that hard and will save you work in the long run. You will probably still want to detect smaller screens and serve up content tailored to them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by paulorlowski
    We design to 800 x 600.
    Then you aren't designing for the Web.

    Unlike the print medium, the Web can't be considered a discrete set of canvas sizes. It is variable, ranging from the very small, all the way to the very large. If you aim for a particular viewport size, you're excluding everything else. You need to accept that the approach used for designing on paper cannot be applied - at least rigidly - when designing for a computer screen.

    Read up on fluid design. If you embrace that principle fully, your problems will all but disappear. If worst comes to worst, with a well-written document you can easily apply a handheld-specific style sheet using either a media at-rule, or the media attribute, without the need for multiple versions of the same pages.

    I'd like to detect the screen size or resolution
    You really need to stop wanting that.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •