is it possible to vertically align an image coming inside an anchor tag ?
I am using two anchor tags inside a DIV.. each one should vertically align to center. in one I am using an image in another one text ?
PS: without line-height
Vertical align does not behave as you'd think in divs since it works only for table cells.
There are numbers of CSS "hacks" to get that to work such as this one or this one
Try this:
div{
display: table-cell;
vertical-align: middle;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With