Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Placing a Table in the Center of a Page
How do I center a table?
✍: FYIcenter
You place a table in the center of a page with the help of CSS as shown in this example:
In your HTML, use
<div class="center">
<table>...</table>
</div>
In your CSS, use
div.center {
text-align: center;
}
div.center table {
margin-left: auto;
margin-right: auto;
text-align: left;
}
2007-03-03, 6402👍, 0💬
Popular Posts:
How To Merge Cells in a Row? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells If you wan...
what are the advantages of hosting WCF Services in IIS as compared to self hosting? There are two ma...
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some co...
What Is C Language? The C programming language is a standardized programming language developed in t...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...