March 16, 2012

Center text beside image

Question by shub

Can somebody help me to center the text (link) to the image? Please have a look at my fiddle.

Thanks & regards

Answer by Starx

Use vertical-align property

a {
    border: 1px solid black;
    vertical-align: middle;
}

Demo

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!