Results 1 to 5 of 5

Thread: Limit a web sites Resolution.

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

    Default Limit a web sites Resolution.

    Hi, I am trying to my web site have the resolution of 1024X768

    How can I do that?

  2. #2
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    body{ padding:3px;
    	  height:1024px;
    	  width:768px;}

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    When you say "I want to have the resolution of..." that could mean one of two things... either what Chris suggested, to change the width and height of the parent window, or you could resize the window, using the window.resize(x,y) function. Either way won't change the effect having a different screen resolution takes on a web page though. The font may be smaller, icons, tables, etc.
    - Mike

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You shouldn't do this: fixed-width layouts look daft at some resolutions, and for fixed-height layouts the text will overflow if it is too big.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    That's why I like using percentages for my layouts .
    - 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
  •