Hola otra vez: (Hola KarlanKas
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
)
Voy a corregir lo que he puesto (tal vez te valga lo que pone KarlanKas...
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
)
Código PHP:
<html>
<head>
<script language="Javascript">
<!--
function ini() {
document.getElementById("tabla").style.textAlign = "center";
document.getElementById("tabla").style.backgroundColor = "yellow";
document.getElementById("tabla").style.width =
(screen.width == 1200) ? 220 :
(screen.width == 1024) ? 202 :
(screen.width == 800) ? 10 : "100%";
}
// -->
</script>
</head>
<body onload="ini()">
<center>
<table id=tabla><tr>
<td style="width:100%">
Pruebas
</td>
</tr>
</table>
</center>
</body>
</html>
Faltaba ponerlo en una función que se ejecutase en el inicio, y el error de poner 100% sin entrecomillar...
Verás que las dimensiones tienes que acomodarlas a tu gusto.
Saludos