SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    kansas
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change page size for different resolutions

    Hello,

    Is it possible to change the size of a page based on what the user's screen resolution is? For example I designed a site that fills the whole screen in 800x600, but I now need that site to fill the whole screen in 1024x768 also. Can this be accomplished by detecting the screen resolution and than resizing the page.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It's possible but it's not smart.

    If my resolution is 1024x768 but I only keep my window sized to 800x600, then your page will be too wide for my liking.

    Either stick to a fixed width, or offer a fluid layout (100% width in your HTML/CSS) that adjusts to a user's window size without javascript. Otherwise you'll have a hard time getting it right, and even then it won't work correctly all the time.

  3. #3
    I see geek people adris72's Avatar
    Join Date
    Feb 2005
    Location
    NYC
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you really want to use that "detect resolution" script, the only smart way is create 2 versions of the website, one for each resolution, and then use the script to redirect the visitor to the correct one.
    Of course I would be too lazy to maintain two versions of a website.


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
  •