Ver Mensaje Individual
  #7 (permalink)  
Antiguo 11/09/2011, 01:13
PoLiZe
 
Fecha de Ingreso: marzo-2008
Ubicación: Santa Cruz, Argentina
Mensajes: 433
Antigüedad: 16 años, 1 mes
Puntos: 5
Respuesta: Ajustar Margin segun resolución

Si, en eso me había confundido, actualmente uso este:

Código HTML:
Ver original
  1. <script language="javascript">
  2. function reso(){
  3.  
  4.     if(screen.width>1024)
  5.         {
  6.             document.getElementById('resolucion').href="centrado.css";
  7.         } else {
  8.             document.getElementById('resolucion').href="ajustado.css";
  9.         }
  10. }
  11. <link rel="stylesheet" type="text/css" title="resolucion"  id="resolucion" />
  12. </head>
  13.  
  14. <body onload="reso()" bgcolor="#ddd" style="text-align:center;">