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 |
How do you make decision when to use use HTML & xHTML ?
How can you make a bulleted list in html?
Tell me what purpose does html5 serve?
What is a frameset bike?
What is session storage and how can you create one?
What is a href tag?
How to remove/clear the data from local storage?
Is textarea an empty tag in html?
What is Text Field in Input Element?
What does the head tag mean?
What are structural tags?
How to utilize a server-sent event in HTML5?