Ver Mensaje Individual
  #6 (permalink)  
Antiguo 03/04/2009, 18:57
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 7 meses
Puntos: 40
Respuesta: resolucion de pantalla

claro que si se puede hacer con css, tienes 2 opciones,si te fijas las paginas que se ve bien a 800x600 o es por que están hechas con medidas porcentuales o con medidas fijas donde el limite máximo de ancho se lo que entre en la resolución.

Cuando yo trabajo con medidas fijas hago las webs a 770px de ancho para que se vean bien ya que de los 800px tienes que descontar barras de scroll y ventana del navegador. Aquí un ejemplo:

Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <style type="text/css">
  6. *{margin:0; padding:0;}
  7. #contenedor{width:770px; height:auto; overflow:auto; margin:0 auto;}
  8. #cabecera{width:770px; height:100px; background-color:#333;text-align:center;}
  9. #contenido{width:770px; height:auto; overflow:auto;}
  10. #izq{width:150px; height:300px; float:left; background-color:#666;}
  11. #der{width:150px; height:300px; float:right; background-color:#666;}
  12. #centro{width:470px; height:300px; float:left; background-color:#999;}
  13. #pie{width:770px; height:50px; background-color:#CCC; clear:both; text-align:center;}
  14. </head>
  15.  
  16. <div id="contenedor">
  17.     <div id="cabecera">Cabecera</div>
  18.     <div id="contenido">
  19.         <div id="izq"></div>
  20.         <div id="centro"></div>
  21.         <div id="der"></div>
  22.     </div>
  23.     <div id="pie">pie</div>
  24. </div>
  25. </body>
  26. </html>

La otra es trabajar un diseño líquido o sea en porcentajes, o sea que se ajuste a la medida del usuario.Un ejemplo:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <style type="text/css">
  6. *{margin:0; padding:0;}
  7. #contenedor{ width:100%; height:auto; overflow:auto;}
  8. #cabecera{width:100%; height:100px; background-color:#333;text-align:center;}
  9. #contenido{width:100%; height:auto; overflow:auto;}
  10. #izq{width:150px; height:300px; float:left; background-color:#666;}
  11. #der{width:150px; height:300px; float:right; background-color:#666;}
  12. #centro{height:300px;background-color:#999;}
  13. #pie{width:100%; height:50px; background-color:#CCC; clear:both; text-align:center;}
  14. </head>
  15.  
  16. <div id="contenedor">
  17.     <div id="cabecera">Cabecera</div>
  18.     <div id="contenido">
  19.         <div id="der"></div>
  20.         <div id="izq"></div>
  21.         <div id="centro"></div>    
  22.     </div>
  23.     <div id="pie">pie</div>
  24. </div>
  25. </body>
  26. </html>

espero te sirva
__________________
WFC
codigo82