Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/08/2011, 02:22
sirdaiz
 
Fecha de Ingreso: diciembre-2010
Mensajes: 459
Antigüedad: 13 años, 4 meses
Puntos: 21
fixed o relative

Hola he usado fixed para hacer una pagian web sencilla, se ve correctamente en ie y mozilla lo malo es que no me aparece el scroll vertical, hay contenido mas abajo pero no deja bajar porque no hay scroll, se lo he puesto en el body a fuerza bruta pero tampoco hay la posibilidad de bajar

Entonces he decidido pasar a relative pero en ie me sale todo un churro (supongo que tendre que dar posiciones) pero aqui ya me sale el scroll vertical y puedo moverlo pero en mozilla las cajas salen bien pero no sale el scroll, os dejo el codigo aki

index.php

Código PHP:
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.  
  4.  
  5.     <head>
  6.         <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
  7.         <script type="text/javascript" src="js/jquery.lksMenu.js"></script>
  8.         <link rel="stylesheet" type="text/css" href="css/lksMenuSkin3.css" />
  9.         <link rel="stylesheet" type="text/css" href="css/general.css" />
  10.         <script>
  11.         $('document').ready(function(){
  12.             $('.menu').lksMenu();
  13.         });
  14.         </script>
  15.     </head>
  16.     <body>
  17.    
  18.     <DIV id="cabecera">
  19.         <?php include ('vista/logotipo.php'); ?>
  20.     </DIV>
  21.    
  22.     <DIV id="lateral" align="center">      
  23.         <?php
  24.             include ('vista/marcas.php');
  25.             do_marcas();
  26.         ?>
  27.     </DIV>
  28.  
  29.     <DIV id="principal">
  30.             eggege<br>eggege<br>eggeg3232e<br>
  31.         eggeg3232e<br>eggeg3232e<br>eg666geg3232e<br>eggeg3232e<br>eggeg3232e<br>  
  32.     </DIV>
  33.  
  34.     <DIV id="pie">
  35.  
  36.             eggege<br>eggege<br>eggeg3232e<br>
  37.         eggeg3232e<br>eggeg3232e<br>eg666geg3232e<br>eggeg3232e<br>eggeg3232e<br>
  38.  
  39.     </DIV>
  40.  
  41.  
  42.     </body>
  43. </html>

codigo .css de las cajas

Código CSS:
Ver original
  1. #cabecera {
  2.   position: fixed;
  3.   width: 100%;
  4.   height: 18%;
  5.   top: 5%;
  6.   right: 0;
  7.   bottom: auto;
  8.   border-color: #aaaaaa;
  9.   border-width: 1px;
  10.   border-style: solid;
  11.   text-align:center;
  12. }
  13.  
  14. #lateral {
  15.   position: fixed;
  16.   width: 25%;
  17.   height: auto;
  18.   top: 30%;
  19.   right: auto;
  20.   bottom: 100px;
  21.   left: 0;
  22.   border-color: #aaaaaa;
  23.   border-width: 1px;
  24.   border-style: solid;
  25.  
  26. }
  27.  
  28. #principal {
  29.   position: fixed;
  30.   width: auto;
  31.   height: auto;
  32.   top: 30%;
  33.   right: 0;
  34.   left: 35%;
  35.   bottom: 100px;
  36.   border-color: #aaaaaa;
  37.   border-width: 1px;
  38.   border-style: solid;
  39.   text-align:center;
  40. }
  41.  
  42. #pie {
  43.   position: fixed;
  44.   width: 100%;
  45.   height: 100px;
  46.   top: 90%;
  47.   right: 0;
  48.   bottom: 0;
  49.   left: 0;
  50.   border-color: #aaaaaa;
  51.   border-width: 1px;
  52.   border-style: solid;
  53. }


Gracias de antemano