Vertical -align is much used, but nor always results.
To obtain this effect it is necessary over all that the image or the text is absorbed in one div and this div has that to be “display-cell“. However, this div will have that to be involved in one another one div with “display-table“.
Clearly that it is necessary, other values, but below follow an example:

Css Document
.documImagem { display: table; vertical-align: middle; text-align: center; width: 400px; height: 300px;background-color:#8bbbf6;float:left;}
.documImagem * {vertical-align: middle;}
.documImagem .Img {display: table-cell}
.documImagem i { _display:inline-block; _height:100%; *display:inline-block; *height:100%;}

html Document

Posted in css

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s