elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  Fijar Capa html
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Fijar Capa html  (Leído 2,901 veces)
Neibar

Desconectado Desconectado

Mensajes: 47


Ver Perfil
Fijar Capa html
« en: 25 Abril 2012, 08:41 am »

Buenas, estoy empezando con una web, y tengo el pequeño problema de que al cambiar resoluciones del navegador no se hace más pequeño o más grande sino que se va moviendo todo el contenido.

Alguien sabe fijarlo?


gracias de antemanO!


En línea

_teiki

Desconectado Desconectado

Mensajes: 93



Ver Perfil WWW
Re: Fijar Capa html
« Respuesta #1 en: 26 Abril 2012, 04:13 am »

 Publica el código para poder ayudarte.


En línea

Neibar

Desconectado Desconectado

Mensajes: 47


Ver Perfil
Re: Fijar Capa html
« Respuesta #2 en: 26 Abril 2012, 15:36 pm »

bueno, más bien quisiera saber qué poner en el css para fijar cada capa en una posición, ya que como todos sabemos, no se ve igual firefox/chrome/safari/explorer

más que nada es eso.. igualmente, habia pensado en hacer un script que vaya identificando el navegador y según cuál esté usando el usuario, cargar una hoja de estilos, o directamente cargar los estilos en la misma pagina (si, queda feo, pero...)
En línea

Neibar

Desconectado Desconectado

Mensajes: 47


Ver Perfil
Re: Fijar Capa html
« Respuesta #3 en: 26 Abril 2012, 17:02 pm »

me olvidé comentar también que el mayor problema es que al ir cambiando de resoluciones, la pagina en si, aumenta o disminuye moviendose todo el contenido en diagonal (segun se amplie o se reduzca)

para que os agáis una idea, en este mismo foro, si amplias o reduces el tamaño, (ctrl+ruedecita raton), los elementos permanecen en su posición, quisiera conseguir eso.

pd. ctrl+0 para volver a la posición inicial
En línea

Neibar

Desconectado Desconectado

Mensajes: 47


Ver Perfil
Re: Fijar Capa html
« Respuesta #4 en: 26 Abril 2012, 17:58 pm »

ya encontré lo que buscaba, más o menos, se ve en éste ejemplo

supongo que será el "position: relative" :)


Código
  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  2. <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
  3. <title> it's a dogs life - example #11</title>
  4. <meta name="Author" content="Stu Nicholls" />
  5.  
  6. <style type="text/css">
  7. /* choose a suitable font and center the #container div in Internet Explorer */
  8. body {text-align:center; font-family: tahoma; arial, sans-serif; font-size:76%; letter-spacing:0.05em;}
  9.  
  10. /* The containing box for the gallery. */
  11. #container {position:relative; width:770px; height:396px; margin:20px auto 0 auto; border:1px solid #aaa;}
  12.  
  13. /* Removing the list bullets and indentation - add size - and position */
  14. #container ul {width:198px; height:386px; padding:0;  margin:5px; list-style-type:none; float:right;}
  15.  
  16. #container li {float:left;}
  17.  
  18. /* Remove the images and text from sight */
  19. #container a.gallery span {position:absolute; width:1px; height:1px; top:5px; left:5px; overflow:hidden; background:#fff;}
  20.  
  21. /* Adding the thumbnail images */
  22. #container a.gallery, #container a.gallery:visited {display:block; color:#000; text-decoration:none; border:1px solid #000; margin:1px 2px 1px 2px; text-align:left; cursor:default;}
  23. #container a.slidea {background:url(../images/p1_t.jpg); height:93px; width:60px;}
  24. #container a.slideb {background:url(../images/p2_t.jpg); height:93px; width:60px;}
  25. #container a.slidec {background:url(../images/p3_t.jpg); height:93px; width:60px;}
  26. #container a.slided {background:url(../images/p4_t.jpg); height:60px; width:93px;}
  27. * html #container a.slided {width:91px; w\idth:93px;}
  28. #container a.slidee {background:url(../images/p5_t.jpg); height:60px; width:93px;}
  29. #container a.slidef {background:url(../images/p6_t.jpg); height:60px; width:93px;}
  30. * html #container a.slidef {width:91px; w\idth:93px;}
  31. #container a.slideg {background:url(../images/p7_t.jpg); height:60px; width:93px;}
  32. #container a.slideh {background:url(../images/p8_t.jpg); height:93px; width:60px;}
  33. #container a.slidei {background:url(../images/p9_t.jpg); height:93px; width:60px;}
  34. #container a.slidej {background:url(../images/p10_t.jpg); height:93px; width:60px;}
  35. #container a.slidek {background:url(../images/p11_t.jpg); height:60px; width:93px;}
  36. * html #container a.slidek {width:91px; w\idth:93px;}
  37. #container a.slidel {background:url(../images/p12_t.jpg); height:60px; width:93px;}
  38.  
  39. /* styling the hovers */
  40. #container a.gallery:hover {border:1px solid #fff;}
  41. #container a.gallery:hover span {position:absolute; width:372px; height:372px; top:10px; left:75px; color:#000; background:#fff;}
  42. #container a.gallery:hover img {border:1px solid #fff; float:left; margin-right:5px;}
  43. #container a.slideb:hover img, #container a.slidei:hover img {float:right;}
  44.  
  45. </head>
  46.  
  47.  
  48. <div id="container">
  49. <ul>
  50. <li><a class="gallery slidea" href="#nogo"><span><img src="../images/p1.jpg" alt="Alpha" title="Alpha" /><br />ALPHA<br />Photographed by Dorota Mrowka, courtesy of the stock.xchng</span></a></li>
  51. <li><a class="gallery slideb" href="#nogo"><span><img src="../images/p2.jpg" alt="Minie" title="Minie" /><br />MINIE<br />Photographed by Jos&#38;#233; Antonio Assis, courtesy of the stock.xchng</span></a></li>
  52. <li><a class="gallery slidec" href="#nogo"><span><img src="../images/p3.jpg" alt="Megan" title="Megan" /><br />MEGAN<br />Photographed by Rob Waterhouse, courtesy of the stock.xchng</span></a></li>
  53. <li><a class="gallery slided" href="#nogo"><span><img src="../images/p4.jpg" alt="Nancy" title="Nancy" /><br />NANCY<br />Photographed by Philip Keller, courtesy of the stock.xchng</span></a></li>
  54. <li><a class="gallery slidee" href="#nogo"><span><img src="../images/p5.jpg" alt="Missy" title="Missy" /><br />MISSY &amp; PANDA<br />Photographed by Kat Shurtz, courtesy of the stock.xchng</span></a></li>
  55. <li><a class="gallery slidef" href="#nogo"><span><img src="../images/p6.jpg" alt="Stray pup" title="Stray pup" /><br />STRAY PUP<br />Photographed by Bethan Hazell, courtesy of the stock.xchng</span></a></li>
  56. <li><a class="gallery slideg" href="#nogo"><span><img src="../images/p7.jpg" alt="Rolo" title="Rolo" /><br />ROLO<br />Photographed by Paul Leach, courtesy of the stock.xchng</span></a></li>
  57. <li><a class="gallery slideh" href="#nogo"><span><img src="../images/p8.jpg" alt="Gigio" title="Gigio" /><br />GIGIO<br />Photographed by Davide Guglielmo, courtesy of the stock.xchng</span></a></li>
  58. <li><a class="gallery slidei" href="#nogo"><span><img src="../images/p9.jpg" alt="Westy pup" title="Westy Pup" /><br />WESTY PUP<br />Photographed by Rob Waterhouse, courtesy of the stock.xchng</span></a></li>
  59. <li><a class="gallery slidej" href="#nogo"><span><img src="../images/p10.jpg" alt="Giga Byte" title="Fishing" /><br />GIGA BYTE<br />Photographed by Jefras, courtesy of the stock.xchng</span></a></li>
  60. <li><a class="gallery slidek" href="#nogo"><span><img src="../images/p11.jpg" alt="Puppy" title="Puppy" /><br />PUPPY<br />Photographed by Clodiney Cruz, courtesy of the stock.xchng</span></a></li>
  61. <li><a class="gallery slidel" href="#nogo"><span><img src="../images/p12.jpg" alt="Buffy" title="Buffy" /><br />BUFFY<br />Photographed by Rob Waterhouse, courtesy of the stock.xchng</span></a></li>
  62. </ul>
  63. </div>
  64.  
  65.  
  66. </body>
  67. </html>
  68.  
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Grabadoras DVD - Una Capa y Doble Capa
Software
caciqueweb 1 3,909 Último mensaje 2 Agosto 2004, 21:44 pm
por Cobac
Fijar columnas en ListView
.NET (C#, VB.NET, ASP)
diego_lp 4 5,811 Último mensaje 2 Abril 2011, 20:07 pm
por [D4N93R]
Situar capa en el centro de otra capa que la contiene
Desarrollo Web
piterpalomitas 4 3,083 Último mensaje 14 Marzo 2012, 00:27 am
por Hadess_inf
Fijar la hora en debian
GNU/Linux
ccrunch 4 2,972 Último mensaje 7 Julio 2014, 17:13 pm
por Slava_TZD
Data Tables fijar columna no funciona
PHP
oscarcaronte 1 4,451 Último mensaje 4 Abril 2021, 14:39 pm
por oscarcaronte
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines