Ahora he estado buscando durante horasCómo alinear verticalmente vanos con el texto y la imagen
Por favor, considere esta muestra (obviamente no en el lugar correcto!): http://jsfiddle.net/DYLs4/9/
<div id="wrapper">
<span id="text24">Text 24</span>
<span id="text12">Text 12</span>
<span id="icon"></span>
</div>
css:
#text24{
font-size:24px; color:#999;
}
#text12{
font-size:12px; color:#000;
}
#icon{
height:36px; width:36px;
display:inline-block;
background:url(some-icon.png);
}
Lo que estoy tratando de lograr es la siguiente:
- Centro verticalmente el text24 (en relación a la imagen)
- alinear la parte inferior de text12 con la parte inferior de text24
- Asegúrese de que el conjunto funcione en IE6 -> cromo
Muchas gracias por su ayuda!
hicieron intenta y ajuste vertical-align: media; ? – ShibinRagh