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, 5871👍, 0💬
Popular Posts:
What Happens If One Row Has Missing Columns? - XHTML 1.0 Tutorials - Understanding Tables and Table ...
What is the difference between strings and character arrays? A major difference is: string will have...
What are some advantages and disadvantages of Java Sockets? Advantages of Java Sockets: Sockets are ...
How To List All Values of Submitted Fields? - PHP Script Tips - Processing Web Forms If you want lis...
Jack developed a program by using a Map container to hold key/value pairs. He wanted to make a chang...