Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css font leading

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Leading</title>
<!-- to change line height all you need is "line-height" propertie -->
    <style>
        h1{
            line-height: 10px;
        }

        h2{
            line-height: 20px;
        }
    </style>

</head>
<body>

    <h1>the line height is 10px here</h1>
    <h1>the line height is 10px here</h1>

    <h2>the line height is 20px here</h2>
    <h2>the line height is 20px here</h2>

</body>
</html>
 
PREVIOUS NEXT
Tagged: #css #font #leading
ADD COMMENT
Topic
Name
8+1 =