Results 1 to 4 of 4

Thread: Screen Size

  1. #1
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Screen Size

    Is there a script out there that will auto ajust my web pages to what ever the screen size the user has? I create my sites on a 15" but when I look at it on a 17" not everything is in the same place.

  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

    No. There are scripts that will detect the users screen size and/or window size. It is actually the user's window size and font size (font-size cannot be reliably detected) that affects how you page is displayed, not their screen size. When you consider this fact, that the user can change their window size and font-size as often as they like, trying to adjust to it, on the fly, is somewhat possible with javascript but - impossible without javascript. Even with javascript, it is an involved process that must be customized to each page's unique layout. You are far better off designing your page so that it can flow into the space allotted for it on the user's end. This requires no javascript and is actually easier than figuring out how to change everything depending upon the window/font size of the user, not to mention which browser that they might be using.

    Look on the web for cross browser templates/examples of fluid and of liquid layouts.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Simply put, just use percentage based layouts, so it's 90% of the screen, rather than 600px wide, for example.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    And when using images, try to make the end of them flow into something that can repeat the rest of the way. For example, I make my header images 800px wide, then put a background in the body repeating across the screen, that's seamless with the end of the header image. That way, it fills the screen for anyone.

    Then, with content, as djr33 said, use percentages.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

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
  •