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)

    On screen resolution change stylesheets

    Is it possible to detect the screen resolution with jscript than tell a page to load a stylesheet for 800x600 or a stylesheet for 1024x768?
    I would have separate stylesheets for the different resolutions, the jscript would just tell the browser what to load.

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes it can be done BUT a better way is to design a site that "flows" to fill whatever resolution they are using... I personally run 1600 x 1200 on one monitor and 1260 on the other BUT I almost never have the window open 100% so if you are setting width based on their resolution you are almost always going to get horizontal scrollbars!

    Make them flow ...... dont "force them" to fit!

  3. #3
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    kansas
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I think I found a reasonable way to approach the problem and have somewhat fixed it, but the two flash movies (header) and (nav) are causing small issues. What I need them to do is resize according to the resolution. What kinda jscript code would do this?


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
  •