<commit_before>---
extends: _layouts.documentation
title: "Line Height"
---

# Line Height

<div class="subnav">
    <a class="subnav-link" href="#usage">Usage</a>
    <a class="subnav-link" href="#responsive">Responsive</a>
    <a class="subnav-link" href="#customizing">Customizing</a>
</div><commit_msg>Add badges + cheatsheet table for line height docs<commit_after>---
extends: _layouts.documentation
title: "Line Height"
---

# Line Height

<div class="text-xl text-slate-light mb-4">
    Utilities for controlling the leading (line height) of an element.
</div>

@include('_partials.feature-badges', [
    'responsive' => true,
    'customizable' => true,
    'hover' => false,
    'focus' => false
])

<div class="border-t border-grey-lighter">
    <table class="w-full text-left" style="border-collapse: collapse;">
        <colgroup>
            <col class="w-1/5">
            <col class="w-2/5">
            <col class="w-2/5">
        </colgroup>
        <thead>
          <tr>
              <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
              <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th>
              <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th>
          </tr>
        </thead>
        <tbody class="align-baseline">
            <tr>
                <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-none</td>
                <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1;</td>
                <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1</code>.</td>
            </tr>
            <tr>
                <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-tight</td>
                <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1.25;</td>
                <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1.25</code>.</td>
            </tr>
            <tr>
                <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-normal</td>
                <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1.5;</td>
                <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1.5</code>.</td>
            </tr>
            <tr>
                <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-loose</td>
                <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 2;</td>
                <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>2</code>.</td>
            </tr>
        </tbody>
    </table>
</div>
{'fraction_non_alphanumeric': 0.1613539270456786, 'fraction_numerical': 0.011830430496220835, 'mean_word_length': 2.3086956521739133, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 78, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2348988', 'n_tokens_mistral': 1056, 'n_tokens_neox': 1013, 'n_words': 229}