Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (28)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (27)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 5212👍, 0💬
Popular Posts:
How To Display a Past Time in Days, Hours and Minutes? - MySQL FAQs - Managing Tables and Running Qu...
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...
What Is URI? URI (Uniform Resource Identifier) is a superset of URL. URI provides a simple and exten...
How To Create an Add-to-My-Yahoo Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...