Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/08/2009, 14:05
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: div encima de img internet explorer

Otra forma de hacerlo:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
  3. <title>kseso? jugando con css</title>
  4. <style type="text/css">
  5. * {margin: 0; padding: 0; border: 0; position: relative;}
  6. html, body {
  7. background-color: #cdcdcd;
  8. }
  9. #container {
  10. /* si necesitas...*/
  11. }
  12. #container img {position: absolute; left: 0; top: 0;}
  13.  
  14. .resizeMe {
  15. background-color: rgba(0,0,0,0.5); /* utilizar opacity y su equivalencia para ie si fuese necesario*/
  16. height:100px;
  17. left:190px;
  18. top:114px;
  19. width:100px;
  20. }
  21. </head>
  22.  
  23. <div id="container">
  24. <img src="http://share.skype.com/sites/es/skype/skype32ready.jpg" />
  25. <div class="resizeMe">
  26. </div>
  27. </div>
  28. </body>
  29. </html>
Omito los #resizeXXX.
Sólo es cuestión de adaptar el código anterior a tus particularidades.

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++