How do I center a table?

Answers were Sorted based on User's Feedback



How do I center a table?..

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

How do I center a table?..

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

Post New Answer

More HTML DHTML Interview Questions

List out the tags those are mostly used in html?

0 Answers  


What is target html?

0 Answers  


Does html support javascripts?

0 Answers  


What are some new input attributes in HTML5?

0 Answers  


What is the difference between server sent events and websockets in html5?

0 Answers  






What is the difference between html and xhtml?

0 Answers  


Difference between float:left and display:inline.

0 Answers  


What are the different types of Headings supported by HTML?

0 Answers  


What is the geolocation api in html5? Explain

0 Answers  


What is href target?

0 Answers  


What’s new HTML 5 DocType and Charset?

0 Answers  


Which html tag is used to display the data in the tabular form?

0 Answers  


Categories