Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/07/2009, 15:28
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 6 meses
Puntos: 40
Respuesta: usando style:top

si no estoy entiendo mal, mmm., supongo que estas utilizando algún position, fijate a ver si te sirve el ejemplo:

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. <title>Untitled Document</title>
  5. <style type="text/css">
  6. body{background:#DDD;}
  7. .contenedor{width:800px; height:200px; border:1px solid #333; top:40px; position:absolute; margin:-20px 0 0 0;}
  8. </head>
  9.  
  10. <div class="contenedor">
  11.  
  12. </div>
  13. </body>
  14. </html>

Si te fijas ese div tiene medidas de ancho y alto, tiene un top definido y para restarle o sumarle al top juego con su margen superior.

Espero te sirve, si no ya veremos otra solución.
__________________
WFC
codigo82