Foros del Web » Creando para Internet » CSS »

Ajustar resolucion de web

Estas en el tema de Ajustar resolucion de web en el foro de CSS en Foros del Web. Hola, amigos como estan? Tengo una consulta he visto muchos videos y tutoriales casi todos iguales de como redireccionar a x pagina para x resolucion ...
  #1 (permalink)  
Antiguo 08/08/2012, 12:41
 
Fecha de Ingreso: mayo-2011
Mensajes: 78
Antigüedad: 12 años, 11 meses
Puntos: 1
Ajustar resolucion de web

Hola, amigos como estan?
Tengo una consulta he visto muchos videos y tutoriales casi todos iguales de como redireccionar a x pagina para x resolucion de monitor. Ya que ese es mi problema tengo una plantilla que si la cargo en 1366*768 queda bien pero si la cargo en 1024 * 768 se ancha mas y no queda con el borde a los costados deseado.
Adjunto el codigo css y html para ver si me pueden decir en que parte poner la resolucion para 1366*768 y para 1024*76. (Aclaracion nociones muy basicas xd)
Muchas gracias!

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3.  
  4. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  5. <meta name="description" content="description"/>
  6. <meta name="keywords" content="keywords"/>
  7. <meta name="author" content="author"/>
  8. <link rel="stylesheet" type="text/css" href="default.css" media="screen"/>
  9. <title>Nueva pag</title>
  10. </head>
  11.  
  12. <body style="margin: 0 12%;">
  13.  
  14. <div class="container">
  15.  
  16.     <div class="header">
  17.         <a href="index.html"><span>Nueva pag</span></a>
  18.     </div>
  19.  
  20.     <div class="stripes"><span></span></div>
  21.    
  22.     <div class="nav">
  23.         <a href="index.html">Default layout</a>
  24.         <a href="index2.html">Wide layout</a>
  25.         <a href="index3.html">Thin layout</a>
  26.         <a href="index.html">consequat</a>
  27.         <a href="index.html">sem justo</a>
  28.         <div class="clearer"><span></span></div>
  29.     </div>
  30.  
  31.     <div class="stripes"><span></span></div>
  32.  
  33.     <div class="main">
  34.    
  35.         <div class="left">
  36.  
  37.             <div class="content">
  38.  
  39.                 <h1>Porttitor posuere</h1>
  40.                 <div class="descr">Jun 13, 2006 by Vulputate</div>
  41.  
  42.                 <p>In hac habitasse platea dictumst. Duis porttitor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. <a href="index.html">Nunc eget pretium</a> diam. Pellentesque dictum faucibus leo. Vestibulum ac ante. Sed in est.</p>
  43.  
  44.                 <blockquote><p>Sed sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere laoreet, turpis massa tristique justo, sed egestas metus magna sed purus.</p></blockquote>
  45.                
  46.                 <p>Fusce porta pede nec eros. Maecenas ipsum sem, interdum non, aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus. Etiam placerat varius mauris. Maecenas viverra. Sed feugiat. Donec mattis <a href="index.html">quam aliquam</a> risus. Proin quis massa semper felis euismod ultricies.</p>
  47.  
  48.                 <h1>Adipiscing</h1>
  49.                 <div class="descr">Jun 11, 2006 by Laoreet</div>
  50.  
  51.                 <p>Venenatis ac ante fusce accumsan enim et arcu. Duis sagittis libero at lacus. Suspendisse lacinia nulla eget urna.</p>
  52.  
  53.                 <ul>
  54.                     <li>Tristique</li>
  55.                     <li>Aenean</li>
  56.                     <li>Pretium</li>
  57.                 </ul>
  58.  
  59.                 <p>In hac habitasse platea dictumst. Duis porttitor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. Fusce eleifend, dui ut posuere auctor, justo elit posuere sapien, at blandit enim quam fringilla mi.</p>
  60.  
  61.                 <h1>Interdum</h1>
  62.                 <div class="descr">May 24, 2006 by Lectus</div>
  63.  
  64.                 <p>Praesent nisi sem, bibendum in, ultrices sit amet, euismod sit amet, dui. Fusce nibh. Curabitur pellentesque, lectus at <a href="index.html">volutpat interdum</a>. Pellentesque a nibh quis nunc volutpat aliquam</p>
  65.                 <p>Eget feugiat est leo tempor quam. Ut quis neque convallis magna consequat molestie.</p>
  66.            
  67.             </div>
  68.  
  69.         </div>
  70.  
  71.         <div class="right">
  72.  
  73.             <div class="subnav">
  74.  
  75.                 <h1>Auctor</h1>
  76.                 <p>In hac habitasse platea dictumst. Duis auctor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. Fusce eleifend, dui ut posuere auctor, justo elit posuere sapien.</p>
  77.  
  78.                 <h1>Duis Elit</h1>
  79.                 <ul>
  80.                     <li><a href="index.html">consequat molestie</a></li>
  81.                     <li><a href="index.html">sem justo</a></li>
  82.                     <li><a href="index.html">semper</a></li>
  83.                     <li><a href="index.html">magna sed purus</a></li>
  84.                 </ul>
  85.  
  86.                 <h1>Sapien</h1>
  87.                 <ul>
  88.                     <li><a href="index.html">sociis natoque</a></li>
  89.                     <li><a href="index.html">magna sed purus</a></li>
  90.                     <li><a href="index.html">tincidunt</a></li>
  91.                 </ul>
  92.  
  93.                 <h1>Blandit Enim</h1>
  94.                 <ul>
  95.                     <li><a href="index.html">consequat molestie</a></li>
  96.                     <li><a href="index.html">sem justo</a></li>
  97.                     <li><a href="index.html">semper</a></li>
  98.                     <li><a href="index.html">magna sed purus</a></li>
  99.                 </ul>
  100.  
  101.                 <h1>Fringilla</h1>
  102.                 <ul>
  103.                     <li><a href="index.html">sociis natoque</a></li>
  104.                     <li><a href="index.html">magna sed purus</a></li>
  105.                     <li><a href="index.html">tincidunt</a></li>
  106.                 </ul>
  107.  
  108.             </div>
  109.  
  110.         </div>
  111.  
  112.         <div class="clearer"><span></span></div>
  113.  
  114.     </div>
  115.  
  116.     <div class="footer">
  117.    
  118.             <div class="col3">
  119.  
  120.                 <h2>Tincidunt</h2>
  121.                 <ul>
  122.                     <li><a href="index.html">consequat molestie</a></li>
  123.                     <li><a href="index.html">sem justo</a></li>
  124.                     <li><a href="index.html">semper</a></li>
  125.                     <li><a href="index.html">magna sed purus</a></li>
  126.                     <li><a href="index.html">tincidunt</a></li>
  127.                 </ul>
  128.  
  129.             </div>
  130.  
  131.             <div class="col3center">
  132.                 <h2>Sed purus</h2>
  133.                 <ul>
  134.                     <li><a href="index.html">consequat molestie</a></li>
  135.                     <li><a href="index.html">sem justo</a></li>
  136.                     <li><a href="index.html">semper</a></li>
  137.                     <li><a href="index.html">magna sed purus</a></li>
  138.                     <li><a href="index.html">tincidunt</a></li>
  139.                 </ul>
  140.             </div>
  141.  
  142.             <div class="col3">
  143.                 <h2>Praesent</h2>
  144.                 <ul>
  145.                     <li><a href="index.html">consequat molestie</a></li>
  146.                     <li><a href="index.html">sem justo</a></li>
  147.                     <li><a href="index.html">semper</a></li>
  148.                     <li><a href="index.html">magna sed purus</a></li>
  149.                     <li><a href="index.html">tincidunt</a></li>
  150.                 </ul>
  151.             </div>
  152.  
  153.             <div class="bottom">
  154.                
  155.                 <div class="clearer"><span></span></div>
  156.  
  157.             </div>
  158.  
  159.     </div>
  160.  
  161. </div>
  162.  
  163. </body>
  164.  
  165. </html>

Código CSS:
Ver original
  1. * {
  2.     margin: 0%;
  3.     padding: 0;
  4. }
  5.  
  6. a {text-decoration: none;}
  7.  
  8. body {
  9.     background: #0A497B url(img/bg.jpg) repeat-y center top;
  10.     color: #BBB;
  11.     font: normal 62.5% "Lucida Sans Unicode",sans-serif;
  12. }
  13.  
  14. p,ul {
  15.     font-size: 1.2em;
  16.     padding-bottom: 1.2em;
  17.     color: #F30
  18. }
  19.  
  20. blockquote {font: bold 1em sans-serif;}
  21.  
  22. code {
  23.     background: #444;
  24.     display: block;
  25.     font-size: 12px;
  26.     margin: 0 10px 12px;
  27.     overflow: auto;
  28.     padding: 8px 10px;
  29.     white-space: pre;
  30. }
  31.  
  32. img {border: none;}
  33.  
  34. ul {margin-left: 2em;}
  35. h1 {font: normal 2.4em sans-serif;
  36.     color: #0A497B ;
  37. }
  38. h2 {
  39.     font: bold 1.6em Verdana,sans-serif;
  40.     padding-bottom: 4px;
  41.     color: #0A497B ;
  42. }
  43. .clearer {clear: both;}
  44. .stripes {
  45.     background: #333 url(img/stripe.gif);
  46.     height: 6px;
  47. }
  48. .left {float: left;}
  49. .right {float: right;}
  50.  
  51. .header {
  52.     background-image:url(Nuevo..jpg);
  53.     border-bottom: 1px solid #333;
  54.     font: normal 2em sans-serif;
  55.     height: 120px;
  56.     background-repeat: no-repeat;
  57.     background-position: center center;
  58. }
  59. .header a {
  60.     color: #888;
  61.     display: block;
  62.     line-height: 120px;
  63.     text-decoration: none;
  64.     width: 100%;
  65. }
  66. .header span {padding-left: 32px;}
  67. .header a:hover {
  68.     background: #191919;
  69.     color: #BBB;
  70. }
  71.  
  72. .container {
  73.     border: 3px solid #444;
  74.     border-top: none;
  75. }
  76.  
  77. .main {
  78.     background: #303030;
  79.     border-bottom: 1px solid #2A2A2A;
  80.     border-left: 1px solid #2A2A2A;
  81. }
  82. .main .left {width: 64%;}
  83. .main .right {width: 36%;}
  84.  
  85. .content {
  86.     border-left: 1px solid #444;
  87.     border-top: 1px solid #444;
  88.     padding: 16px;
  89. }
  90.  
  91. .content h1 {
  92.     background: url(img/bgh1.gif) repeat-x left bottom;
  93.     color: #0A497B;
  94.     margin-bottom: 10px;
  95.     padding: 6px 0 4px;
  96. }
  97. .content a {
  98.     color: #999;
  99.     text-decoration: underline;
  100. }
  101. .content a:hover {color: #CCC;}
  102. .content .descr {margin-bottom: 5px;}
  103.  
  104. .nav {background: #191919 url(img/nav.gif);}
  105. .nav a {
  106.     background: #191919 url(img/nav.gif);
  107.     border-right: 1px solid #161616;
  108.     color: #CCC;
  109.     float: left;
  110.     font: bold 1em Verdana,sans-serif;
  111.     line-height: 51px;
  112.     padding: 0 20px;
  113. }
  114. .nav a:hover {
  115.     background: #191919 url(img/nav_hover.gif);
  116.     }
  117.  
  118. .subnav {
  119.     background: #2A2A2A;
  120.     border: 1px solid #1E1E1E;
  121.     border-top-color: #444;
  122.     padding: 12px;
  123. }
  124. .subnav h1 {padding-top: 8px;}
  125. .subnav ul {margin: 0;}
  126. .subnav li {
  127.     background: url(img/li.gif) no-repeat left bottom;
  128.     list-style: none;
  129.     margin: 0;
  130. }
  131. .subnav li a {
  132.     color: #777;
  133.     line-height: 2.4em;
  134.     padding-left: 18px;
  135.     text-decoration: none;
  136. }
  137. .subnav li a:hover {color: #BBB;}
  138.  
  139. .footer {
  140.     background: #191919;
  141.     border-top: 1px solid #444;
  142.     color: #999;
  143.     padding: 3% 3% 1%;
  144. }
  145. .footer ul {
  146.     border-top: 1px solid #262626;
  147.     margin: 0;
  148. }
  149. .footer li {
  150.     border-bottom: 1px solid #262626;
  151.     list-style: none;
  152. }
  153. .footer li a {
  154.     display: block;
  155.     line-height: 2em;
  156.     padding-left: 4%;
  157.     width: 96%;
  158. }
  159. .footer a {color: #666;}
  160. .footer a:hover {
  161.     color: #FFF;
  162.     background: #222;
  163. }
  164.  
  165. .col3,.col3center {
  166.     float: left;
  167.     width: 31%;
  168. }
  169. .col3center {margin: 0 3%;}
  170.  
  171. .bottom {
  172.     color: #666;
  173.     clear: both;
  174.     font-size: 1.1em;
  175. }
  176. .bottom a {color: #888;}
  177. #contact_form {
  178.     float: left;
  179.     padding: 0;
  180. }
  181.  
  182. #contact_form form {
  183.     margin: 0;
  184.     padding: 0;
  185.     width: 300px;
  186. }
  187.  
  188. #contact_form form .input_field {
  189.     width: 300px;
  190.     padding: 5px;
  191.     color: #000000;
  192.     background: #fff;
  193.     border: 1px solid #2b271d;
  194.     font-family: Tahoma, Geneva, sans-serif;
  195.     font-size: 15px;
  196. }
  197.  
  198. #contact_form form label {
  199.     font-family: Arial, Helvetica, sans-serif;
  200.  
  201.     font-size: 14px;
  202.  
  203.     font-weight: bold;
  204.  
  205.     color: #fff;
  206. }
  207.  
  208. #contact_form form textarea {
  209.     width: 300px;
  210.     height: 160px;
  211.     color: #000000;
  212.     padding: 5px;
  213.     background: #fff;
  214.     border: 1px solid #2b271d;
  215.     font-family: Tahoma, Geneva, sans-serif;
  216.     font-size: 12px;
  217. }
  218.  
  219. #contact_form form .submit_btn {
  220.     margin: 10px 0px;
  221.     padding: 8px 14px;
  222.     background-color: #111;
  223.     color: #FFFFFF;
  224.     border: 1px solid #2b271d;
  225. }
  #2 (permalink)  
Antiguo 08/08/2012, 13:56
 
Fecha de Ingreso: agosto-2012
Mensajes: 37
Antigüedad: 11 años, 8 meses
Puntos: 12
Respuesta: Ajustar resolucion de web

Acabo de ver la plantilla y se adapta a todos los tamaños, no se porque dices que la ves mal, prueba a hacer más pequeña la ventana, se sigue viendo bien.
__________________
Pedro Gutiérrez, diseñador y desarrollador web freelance en Toledo,
busco soluciones a los proyectos web que me propongas.

Visita mi web-blog: http://xitrus.es
  #3 (permalink)  
Antiguo 08/08/2012, 14:41
 
Fecha de Ingreso: mayo-2011
Mensajes: 78
Antigüedad: 12 años, 11 meses
Puntos: 1
Respuesta: Ajustar resolucion de web

Solucionado! Muchas gracias pedrogp9693.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:09.