Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
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 (28)
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, 5431👍, 0💬
Popular Posts:
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
How Is the Width a Parent Element Related to Child Elements? - CSS Tutorials - Understanding Multipl...
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In th...
.NET INTERVIEW QUESTIONS - Can we use events with threading ? Yes, you can use events with thread; t...
How To Avoid the Undefined Index Error? - PHP Script Tips - Processing Web Forms If you don't want y...