code 4 dectection the screen resolution in css?

Discussion in 'HTML & Website Design' started by ch_akmal, Nov 22, 2007.

  1. #1
    hi

    I have a site and i use css. but there is a problem. I make that site for 800*600 screen resolution but in 1024*768 it is not open properly with css so i need that code which detect the screen resolution and select the proper css file to fit the site in web browser.

    Thanks

    and there is a useful link to get information in IT related

    http://groups.yahoo.com/group/IT_Tech_Support2030

    Please join and promote this group and help this group to make a big online IT community.
     
    ch_akmal, Nov 22, 2007 IP
  2. webdesigner

    webdesigner Well-Known Member

    Messages:
    489
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Surely you would be better off designing a fluid site which would resize depending on screen size.

    Just because someone has 800x600 or 1024x768, it doesn't mean they have got there browser maximized. They could have the browser size at half, maybe they got favorites tab open etc etc... The possibilities and varieties are endless.
     
    webdesigner, Nov 23, 2007 IP