CSS font-kerning Property

CSS font-kerning Property

CSS font-kerning Property

The font-kerning property in CSS controls the spacing between specific pairs of characters, improving readability and typography. Kerning adjusts character spacing based on predefined font rules, ensuring visually pleasing text.

1. Syntax

selector { font-kerning: value; }

2. Property Values

ValueDescription
autoDefault. Uses the font’s built-in kerning information.
normalEnables kerning (same as auto).
noneDisables kerning, using uniform spacing between letters.

3. Example Usage

A. Enabling Kerning (Default)

p { font-family: "Georgia", serif; font-kerning: normal; }

✅ Uses the font’s built-in kerning pairs.

B. Disabling Kerning

h1 { font-family: "Arial", sans-serif; font-kerning: none; }

✅ Turns off automatic kerning adjustments, using uniform spacing.

4. Why Use font-kerning?

  • Enhances readability and visual appeal.
  • Ensures consistent text spacing in professional typography.
  • Useful for fine-tuning text layouts in branding, logos, and headings.

5. Browser Support

šŸ”¹ Supported in: Chrome, Edge, Firefox, and Safari.
šŸ”ø Alternative: Use letter-spacing for manual adjustments:

p { letter-spacing: 0.05em; }

6. Visual Example

Text without kerningText with kerning
AV (too much space)AV (proper kerning)
Soeng Souy

Soeng Souy

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

CAN FEEDBACK
close