I want to center a table using CSS in an HTML page. Not the content of the fields (row-columns) of the table, but the table. The table element.
Code:
<div id="mostrar_tabla">
<form action="<?php echo $_SERVER['PHP_SELF'];?>" name="tabla_datos" id="tabla_datos" method="POST">
<table class="table table-striped" id="tabla" name="tabla" width="600" border="2" cellspacing="3" cellpadding="3" style="font-size: 10pt">
...........
</table>
</form>
</div>
CSS code tried:
#tabla{
display: table;
}