How do I center a table?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is reset and submit buttons?

420


What are title tags?

503


Why html is markup language?

434


What does dtd mean?

459


How we can make an image draggable?

480






What is the main function of dom?

439


Can html5 replace javascript?

536


What is web storage in html?

427


What is html5 geolocation?

467


Define iframe in html.

538


What is column writing?

444


Which tag is used to insert images into your web page?

401


Is li an empty tag?

454


What is html4?

498


What is numbered list?

430