line-height in css

What is line-height in CSS?

It declares the line height for a line.  

Example:

<html>
<head>
<style>
.height_set
{
color : green;
background : yellow;
line-height : 200px;
}
</style>
</head>
<body>
<h1 class=”height_set”>this is line-height</h1>
</body>
</html>

Output:

 

this is line-height

 

 

 

Subscribe for Friendship

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]