Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Oct 2003
    Location
    Minneapolis, MN
    Posts
    23
    Member #
    3621
    I want to vertically align my page to the middle of the screen. For the life of me I can't get it to work.

    I want it to look like:

    +--------------------------+
    - Empty space -
    ====================
    - Page -
    ====================
    - More Empty Space -
    +--------------------------+

    Any ideas?

  2.  

  3. #2
    Mon
    Mon is offline
    Junior Member Mon's Avatar
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    6
    Member #
    3628
    You have to do a table like this:

    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td align="center" valign="middle">Here your page</td>
    </tr>
    </table>


    If you donīt want that this is center horizontally, just quit "100%" in widht and put the size that you want.

    Mon

  4. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    Minneapolis, MN
    Posts
    23
    Member #
    3621
    Nevermind, I stopped being a retard. It was slightly different with that, 5 rows involved.

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    His sample is still pertinent, you should just nest your table within the aligned cell of the outer table, like so:
    Code:
    <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td align="center" valign="middle">
                <table width="750" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td>Row 1</td>
                    </tr>
                    <tr>
                        <td>Row 2</td>
                    </tr>
                    <tr>
                        <td>Row 3</td>
                    </tr>
                    <tr>
                        <td>Row 4</td>
                    </tr>
                    <tr>
                        <td>Row 5</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

  6. #5
    Junior Member
    Join Date
    Oct 2003
    Location
    Minneapolis, MN
    Posts
    23
    Member #
    3621
    That's what I did. Just wasn't being smart about it.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:47 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com