Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Ontario, Canada
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Center DIV or table horizontally regardless of screen resolution

    Hi all. Seems simple enough what I'm tryng to accomplish but darned if I can find a simple solution:

    I have a table containing the contents of my splash page. I want to center the table (or DIV if that makes a difference) horizontally and vertically in the center of the page regardless of screen resolution. Here's the URL if anyone needs a visual reference: http://www.ldoa.net/caet/index.htm

    How do I go about doing this? Please and thanks!
    Last edited by Deanna475; 01-23-2005 at 08:46 PM.

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,778
    Thanks
    19
    Thanked 155 Times in 146 Posts
    try this, using percentages to adjust for browser size and screen res.:

    http://www.tizag.com/cssT/reference/position.php
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #3
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try checking the HTML FAQs sticky at the top of the html forum! Did you even use the search feature on CF?

    http://www.codingforums.com/showthre...254#post182254
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Ontario, Canada
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for both of your replies. I implemented the "negative margin method" and this seems to have done the job.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •