Ver Mensaje Individual
  #8 (permalink)  
Antiguo 04/02/2012, 06:24
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Centrar div ...

@MARIAYOYA

La etiqueta <pre> no tiene absolutamente nada que ver con el posicionamiento.

Podrías utilizar position, o aplicar margin
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <title>slideshowfull</title>
  6. <style type="text/css">
  7. #Image1 {
  8. position: fixed;
  9. z-index: -1;
  10. top: 0;
  11. left: 0;
  12. width: 100%;
  13. height:100%;
  14. }
  15.  
  16. #slides1 {
  17. width: 400px;
  18. margin: 0 auto;
  19. }
  20. #slides2 {
  21. width: 400px;
  22. position: absolute;
  23. left: 10px;
  24. top: 300px;
  25. }
  26. #slides3 {
  27. width: 400px;
  28. margin-left: 250px;
  29. margin-top: -300px;
  30. }
  31.  
  32.  
  33. #slides img, #slides2 img,#slides3 img{
  34. cursor: pointer;
  35. }
  36. <script type='text/javascript'>
  37. function inhabilitar(){return false; }  
  38. document.oncontextmenu=inhabilitar;
  39. </script>
  40.  
  41. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type='text/javascript'></script>
  42. <script src="responsiveslides.min.js" type='text/javascript'></script>
  43. <script type='text/javascript'>
  44.     jQuery(function() {
  45.       $("#slides1").responsiveSlides({
  46.         maxwidth: 400
  47.       }
  48.       );
  49.      
  50.      
  51.       $("#slides2").responsiveSlides({
  52.         maxwidth: 400
  53.       }
  54.       );
  55.      
  56.      
  57.       $("#slides3").responsiveSlides({
  58.         maxwidth: 400
  59.       }
  60.       );
  61.      
  62.   });
  63. </script>
  64.  
  65. </head>
  66. <body>
  67. <div id="slides1">  
  68.    <img src="1.jpg" alt="" onclick="window.open('http://emprear.com','nuevaventana','width=800,height=600')"/>
  69.    <img src="2.jpg" alt="" />
  70.    <img src="3.jpg" alt="" />
  71. </div>
  72.  
  73. <div id="slides2">  
  74.    <img src="1.jpg" alt="" onclick="window.open('http://emprear.com','nuevaventana','width=800,height=600')"/>
  75.    <img src="2.jpg" alt="" />
  76.    <img src="3.jpg" alt="" />
  77. </div>
  78.  
  79. <div id="slides3">  
  80.    <img src="1.jpg" alt="" onclick="window.open('http://emprear.com','nuevaventana','width=800,height=600')"/>
  81.    <img src="2.jpg" alt="" />
  82.    <img src="3.jpg" alt="" />
  83. </div>
  84. <img src="steel.jpg" alt="" id="Image1" />
  85. </body>
  86. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.