Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/03/2011, 07:24
Avatar de tredio
tredio
 
Fecha de Ingreso: noviembre-2008
Ubicación: Carabobo
Mensajes: 466
Antigüedad: 15 años, 5 meses
Puntos: 66
Respuesta: Centrar elemento verticalmente

ok le heche un ojo a tu codigo, intenta asi:

Código CSS:
Ver original
  1. <style>
  2.     .work-caption{font:12px Verdana; vertical-align:middle;}
  3.     .work-caption h3{margin:0; padding:0;}
  4. </style>

Código Javascript:
Ver original
  1. <script>
  2. $(document).ready(function(){
  3.     $(".work-caption").each(function(){
  4.         var heigth = $(this).height();
  5.         $(this).css({heith:height, lineHeigth:height;});
  6.     });
  7. });
  8. </script>

no estoy seguro si funcione asi como esta por que no se como tienes estructurado tu css, pero pienso que es mas facil si lo haces usando line-heigth y vertical-align. saludos.
__________________
Extension Google Chrome
dar las gracias no cuesta nada :D