SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Pixels to %

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How much of a percent would 820 pixels be? I can't get my page centered on anything excpet a 800X600 screen.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    WA
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That depends on what the browser window width is. 820 is 128% of 640 and 80% of 1024 (roughly).

    Maybe a URL would help so we can see how you've coded the page and what you're trying to do might help us troubleshoot for you.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm on 1600x1200 and it is not centered but rather flush left.

    To make it centered put this right after the <body> tag:
    <div align="center">

    And before the </body> tag put:
    </div>

    p.s. If you want to find out what percent of a window say, 800px wide will take up on a, say, 1280x1024 screen use this equation:
    800 / 1280 * 100


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
  •