How do I center a table?
Answers were Sorted based on User's Feedback
Answer / devendra saini
it's a common tags for table
<TABLE ALIGN=CENTER>
But it's can be done by CSS Styly="margine:0px auto;
position:relative;"
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
The "correct" way of doing it is <TABLE ALIGN=CENTER>, but
this doesn't work in several popular browsers. Put <CENTER>
around the entire table for these browsers.
This causes some problems with browser that do support
CENTER but not tables, such as Lynx. In these browsers, the
contents of the cells is now displayed centered, which is
not what is intended. To avoid this, you can put the cell's
contents in <P ALIGN=left> or <DIV ALIGN=left> depending on
the amount of text in the cell.
| Is This Answer Correct ? | 0 Yes | 0 No |
Please tell How to add testimonial slider in website.
Why does the browser show my plain html source?
How do I detect what browser is being used?
Where can I use main tag?
What has the same effect as two br tags?
What is meta tags? Why it is used?
What is a nest in html?
Can you explain what the use of canvas element in html5?
Are html tags case sensitive?
How is Cell Padding different from Cell Spacing?
What are the new Form Elements introduced in HTML 5?
Why is my binary file not downloaded, but shown on the screen?