Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 898495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:03:09+00:00 2026-05-15T15:03:09+00:00

Possible Duplicate: How to Vertically Align a Table in CSS I would like to

  • 0

Possible Duplicate:
How to Vertically Align a Table in CSS

I would like to place my table smack dab in the center of a page. IT is easy horizontally align it just using

<table align="center"></table>

But it will not allow this:

<table align="center" valign="center">

I also cant put the valign in a div because it is not a valid attribute.

I have the idea of making a cell take up an the entire page then using:

<Table align="center" width="100%">
<tr><td valign="middle" height="100%"></td></tr>
</table>

But that too does not work because my <td> does not take up the entire page. When I set its height to 100% it only takes up the amount of space necessary.

Any Ideas? CSS code would be great help also.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:03:09+00:00Added an answer on May 15, 2026 at 3:03 pm

    http://www.pmob.co.uk/pob/vertical-center1.htm

    After you follow that link, right click the page that opened, and view the source code.

    You’ll notice that IE is tricky because they use conditional commenting (if you’re not used to them, it’s tricky). What they are doing is taking the height of the window at line 48 of the code and putting the box at 50% of the window’s current height, so it even works when resized.

    For the other browsers, it should be pretty clear how they do it…using a combination of position, valign, and text align to achieve desired effect.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Best way to center a <div> on a page vertically and horizontally?
Possible Duplicate: How to center div horizontally and vertically I need to put image
Possible Duplicate: Vertically align div (no tables) I have a div and I would
Possible Duplicate: How to make an image center (vertically & horizontally) inside a bigger
Possible Duplicate: How do I vertically align text next to an image with CSS?
Possible Duplicate: How to make an image center (vertically & horizontally) inside a bigger
Possible Duplicate: How to make an image center (vertically & horizontally) inside a bigger
Possible Duplicate: How do I center text horizontally and vertical in a TextView in
Possible Duplicate: What's The Best Way of Centering a Div Vertically with CSS .title_text_only{
Possible Duplicate: Method for full-screen vertically-centered HTML page? Pls tell me how to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.