![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/05/2011, 11:22
|
![Avatar de IsaBelM](http://static.forosdelweb.com/customavatars/avatar244381_2.gif) | Colaborador | | Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 7 meses Puntos: 1012 | |
Respuesta: Centrar imagen dentro de un div entonces se complica Cita: <style type="text/css">
#cont {width:280px; height:280px; background-color:#000;}
#cont[id] {display: table; position: static;}
#alignfoto {text-align: center;}
#alignfoto[id] {display: table-cell; vertical-align: middle; position: static;}
</style>
<div id="cont">
<div id="alignfoto">
<img src="arch/fotos/dmm84/2011/Dimas.jpg" width="200" height="200" />
</div>
</div> |