March 13, 2012

How to avoid with css when background of the second line covers the letters of the first line?

Question by user1016695

I am building this site: http://alpha.beta.us.lt/

You can see that background of

element in title of the second line covers the first line. How to avoid this?

Thanks!

Answer by Starx

Increase the line-height property

Make the following changes in your code.

.title2 {
   line-height: 2; /* 35px works perfect in your case */
}

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!