SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member crondeau's Avatar
    Join Date
    Aug 2004
    Location
    Vancouver
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Center html page for all screen resolutions

    Does anyone know if there is a javascript code that would ensure that my page is centered on all screen resolution?

    I have a design that is 800px x 600px and want to make sure that it's centered at all times.

    Cheers

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You would use CSS for that. See the CSS forum sticky for the code to do that.

  3. #3
    Non-Member wulf's Avatar
    Join Date
    Jul 2006
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually if you put everything on the page in a frame and then type <center> before the frame... that should center the page while leaving everything else to the left or where ever u put it...

  4. #4
    SitePoint Member crondeau's Avatar
    Join Date
    Aug 2004
    Location
    Vancouver
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fantastic! I used css and it worked like a charm.

    Thanks a million.


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
  •