I have a table that extracts data from a mysql database, I want the table to be centerd on the screen. I have used text-align: center; but obviously it only centers the text inside the div. here is my css .tableOuter { text-align: center; } .tableInner { text-align: center; margin-left: auto; margin-right: auto; } and the table inside tableOuter that I want centerd <div class = "tableOuter"> <body> <h1 style="text-align:center" > View customer table</h1> <div class = "tableInner"> <?php $result = mysql_query("SELECT * FROM customer"); echo "<br>"; echo "<table border='1'> <tr> <th>Customer ID</th> <th>First Name</th> <th>Last Name</th> <th>Phone</th> <th>Address</th> </tr>"; …

Member Avatar
Member Avatar
+7 forum 2

hi: we use system("cls") function in c++ i need a function or a class or any command that i give it in my code that clear my screen plz help me

Member Avatar
Member Avatar
+0 forum 4

How to fixed the layout of page for ALL screens? I mean to say on "ANY" size of COMPUTER SCREEN, Page-layout should be the same. In fact, i would like to put width:100% ONLY for header and footer. I would be more than happy IF i can have small EXAMPLE OF CODE which satisfy the results. Thanks in advanced.

Member Avatar
Member Avatar
+0 forum 13

The End.