Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2013, 13:23
miriamgomez
 
Fecha de Ingreso: abril-2008
Mensajes: 348
Antigüedad: 16 años
Puntos: 1
Problema con un div

Me estoy volviendo loca¡¡¡¡

Trato de explicar mi caso:

Como podeis ver en la siguiente url:

http://www.castilloshinchablescarmon...sincuerpo.html

Es un fantástico visor de imágenes que al pasar por encima el ratón se aumenta la imagen y se ve el título.

Adjunto el código de la hoja de estilo:

Código CSS:
Ver original
  1. * {margin: 0; padding: 0;}
  2.  
  3. #page{
  4.     position: relative;
  5.     width: 850px;
  6.     font-family: verdana;
  7.     font-size: 12px;
  8.     margin-top: 0;
  9.     margin-right: auto;
  10.     margin-bottom: 0;
  11.     margin-left: auto;
  12.     }
  13. ul.thumb {float: left;list-style: none;margin: 0; padding: 40px;width: 660px;background-color: white;}
  14. ul.thumb li {margin: 0; padding: 5px;float: left;position: relative;width: 110px;height: 110px;}
  15. ul.thumb li img {width: 100px; height: 100px;border: 1px solid #ddd;padding: 5px;background: #f0f0f0;position: absolute;left: 0; top: 0;-ms-interpolation-mode: bicubic; }
  16. ul.thumb li img.hover {margin-top:15px;background:url(thumb_bg.png) no-repeat center center;border: none;}
  17. .title{position:absolute;width:185px;height:35px;margin:0;font-weight:900;background:url(blue.png) no-repeat center center;padding:17px 0 0 ;text-align:center; color: #fff; }

Hasta aqui todo normal; pero en cuanto intento añadir un campo llamado cuerpo que lo engloba todo, con las siguientes características:

Código CSS:
Ver original
  1. #cuerpo {
  2.     width: 1000px;
  3.     text-align: center;
  4.     overflow: hidden;
  5.     background-image: url(../objeto/cuerpo.fw.png);
  6.     background-repeat: repeat-y;
  7. }

Pues todo se desplaza a la derecha, tanto las imagenes como el titulo.

http://www.castilloshinchablescarmon...es/zoomer.html

No doy con el fallo a ver si me podéis echar una mano.

Os adjunto el codigo:
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=UTF-8" />
  4. <meta http-equiv="Content-Style-Type" content="text/css" />
  5. <link rel="stylesheet" type="text/css" href="../zoom/zoomer.css" media="screen" />
  6.  
  7.  
  8.  
  9.  
  10. <title>Zoomer for jQuery</title>
  11.  
  12.  
  13.  
  14.  
  15. <!--[if IE 6]>
  16.     <style type="text/css" media="screen">
  17.     ul.thumb li img.hover {
  18.     margin-top:15px;
  19.     background:url(thumb_bg.gif) no-repeat center center;
  20.     border: none;
  21. }
  22. ul.thumb li .title{color:#fff;width:185px;height:50px;margin:0;font-weight:900;background:url(title.gif) no-repeat center center;padding:17px 0 0 0;text-align:center;}
  23.     </style>
  24. <![endif]-->
  25.  
  26.  
  27. </head>
  28.  
  29.  
  30.    
  31.  
  32.     <div id="page">
  33.    
  34.  
  35.         <div id="content">
  36.        
  37.         <div class="container">
  38.          
  39.             <ul class="thumb">
  40.                 <li><a href="../zoom/www.creatividadesweb.com"><img src="../zoom/robots.jpg" alt="Robots like cameras" /></a></li>
  41.                 <li><a href="#"><img src="../zoom/monster.jpg" alt="Monsters!" /></a></li>
  42.                 <li><a href="#"><img src="../zoom/santa.jpg" alt="Santa down under" /></a></li>
  43.                 <li><a href="#"><img src="../zoom/thumb6.jpg" alt="Sponguebob!" /></a></li>
  44.                 <li><a href="#"><img src="../zoom/thumb7.jpg" alt="Star Wars" /></a></li>
  45.                 <li><a href="#"><img src="../zoom/hulk.jpg" alt="Hulk Smash!" /></a></li>
  46.                 <li><a href="#"><img src="../zoom/dino.png" alt="Dinosaur time" /></a></li>
  47.                 <li><a href="#"><img src="../zoom/orange.jpg" alt="Orange car" /></a></li>
  48.                 <li><a href="#"><img src="../zoom/alien.jpg" alt="Aliens!" /></a></li>
  49.                 <li><a href="#"><img src="../zoom/supe.jpg" alt="It's Superman!" /></a></li>
  50.                 <li><a href="#"><img src="../zoom/garfield.jpg" alt="Where's my lasagne?" /></a></li>
  51.                 <li><a href="#"><img src="../zoom/bridge.jpg" alt="The bridge at Sunset" /></a></li>
  52.                 <li><a href="#"><img src="../zoom/peanuts.jpg" alt="Peanuts!" /></a></li>
  53.                 <li><a href="#"><img src="../zoom/thumb5.jpg" alt="1956 Yellow Car" /></a></li>
  54.                 <li><a href="#"><img src="../zoom/thumb4.jpg" alt="Ooooh. Pretty" /></a></li>
  55.                 <li><a href="#"><img src="../zoom/thumb3.jpg" alt="Lets build something" /></a></li>
  56.                 <li><a href="#"><img src="../zoom/thumb2.jpg" alt="Puppy love" /></a></li>
  57.                 <li><a href="#"><img src="../zoom/thumb1.jpg" alt="It's a Toy Story" /></a></li>
  58.             </ul>
  59.        
  60.         </div>
  61.        
  62.         </div>
  63.        
  64.        
  65.    
  66. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
  67. <script type="text/javascript" src="../zoom/zoomer.js"></script>
  68. <script type="text/javascript">
  69. $(document).ready(function(){
  70.     $('ul.thumb li').Zoomer({speedView:200,speedRemove:400,altAnim:true,speedTitle:400,debug:false});
  71. });
  72. </div>
  73.  
  74.  
  75. </html>