Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/02/2006, 07:08
acrego
 
Fecha de Ingreso: abril-2005
Ubicación: Santiago Compostela
Mensajes: 213
Antigüedad: 19 años
Puntos: 0
Aun no soy capaz de centrar la dichosa tabla en la capa, les pongo el código por si alguno sabe como hacerlo:
Código:
body {
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:8pt;
	margin:0px;
	background:url(/Rediseño/imagenes/bg2.gif);
}
#Contenedor{
	position:relative;
	margin: 0 -1px;
	width: 776px;
	border: solid 1px #0a9de6;
	margin
-left: auto;
	margin-right: auto;}

#cabecera {
	background-color:#FFFFFF;
	position: relative;
	z-index: 13;
	width: 100% }

#sesion{	
	width:100%;
	padding:3px 0px 3px 0px;
	background-color:#FED966;
	text-align:right;
}

#Contenedor .pagina {
	background-color:#FFFFE0;
	width: auto;
	border-left: 150px solid #99cdff }



.ContenedorCentral {
	margin: 0;
	width: 100% }

.Navegador, .Cuerpo, .oculta {
	position: relative;
	float: left }

.Navegador {
	margin-right: 1px }

.Cuerpo {
	margin: 0 -3px 0 -2px }

/*.oculta {
	margin-left: 1px }*/

#Contenedor .Navegador {
	margin-left: -150px;
	z-index: 10;
	width: 150px }

#Contenedor .Cuerpo {
	z-index: 20;
	width: 100% }
/*tablas*/
#cuerpotabla{
	position: relative;
	align:center;
}

table, th, td {
	border: 1px solid #D4E0EE;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	color: #555;
	text-align:left;
	
}

caption {
	font-size: 150%;
	font-weight: bold;
	margin: 5px;
}

td, th {
	padding: 4px;
}

thead th {
	text-align: center;
	background: #E6EDF5;
	color: #4F76A3;
	font-size: 100% !important;
}

tbody th {
	font-weight: bold;
}

tbody tr { background: #FCFDFE; }

tbody tr.odd { background: #F7F9FC; }

table a:link {
	color: #718ABE;
	text-decoration: none;
}

table a:visited {
	color: #718ABE;
	text-decoration: none;
}

table a:hover {
	color: #718ABE;
	text-decoration: underline !important;
}

tfoot th, tfoot td {
	font-size: 85%;
}
el ancho de la tabla me varia dependiendo de la consulta que haga a la base de datos, y lo que quiero es que sea un poco automático, que me centre siempre la tabla.
alguno se le ocurre algo??
un saludo