• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

table and td align in the middle of screen, css


I need to align my table and its td, right in the middle of the browser (IE and chrome proof).

How can i do this? It's not in a div but in a form

 <table height="100%" width="100%" border="1">
					<tdvAlign="middle" align="center">

Open in new window

Any feasible solution?

1 Solution
Carl TawnSystems and Integration DeveloperCommented:
Adding a style or "margin:auto" to the container element should centre it.
jazzIIIloveAuthor Commented:
partially true;


    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    height: 100px;

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now