×

Save Your Code

If you click the save button, your code will be saved, and you get an URL you can share with others.

By clicking the "Save" button you agree to our terms and conditions.

Report Error

×

Save to Google Drive

If you have a Google account, you can save this code to your Google Drive.

Google will ask you to confirm Google Drive access.

×

Open from Google Drive

If you have saved a file to Google Drive, you can open it here:

Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div.a {
  line-height: normal;
}
div.b {
  line-height: 1.6;
}
div.c {
  line-height: 80%;
}
div.d {
  line-height: 200%;
}
</style>
</head>
<body>
<h1>The line-height Property</h1>
<h2>line-height: normal (default):</h2>
<div class="a">This is a paragraph with a standard line-height.<br>
The standard line height in most browsers is about 110% to 120%.</div>
<h2>line-height: 1.6 (recommended):</h2>
<div class="b">This is a paragraph with the recommended line-height.<br>
The line height is here set to 1.6. This is a unitless value;<br>
meaning that the line height will be relative to the font size.</div>
<h2>line-height: 80%:</h2>
<div class="c">This is a paragraph with a smaller line-height.<br>
The line height is here set to 80%.</div>
<h2>line-height: 200%:</h2>
<div class="d">This is a paragraph with a bigger line-height.<br>
The line height is here set to 200%.</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_line-height by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:17 GMT -->
</html>
×

Report a Problem: