Bird
Raised Fist0
Figmabi_tool

Letter spacing and paragraph spacing in Figma - Cell-by-Cell Formula Trace

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Concept Flow
[Start with base text width] → [Count letters in text] → [Calculate spaces between letters = letters - 1] → [Multiply spaces by letter spacing value] → [Add result to base width] → [Apply paragraph spacing between paragraphs]
This flow shows how letter spacing increases the width of text by adding space between letters, and paragraph spacing adds vertical space between paragraphs.
Formula
Adjusted Width = Base Width + (Number of Letters - 1) * Letter Spacing

Formula to calculate the adjusted width of text after applying letter spacing.

Step-by-Step Trace
StepOperationInput/StateResultExplanation
1Count letters'Hello World' (ignore spaces)10Counting letters excluding spaces
2Calculate spaces10 letters9Spaces between letters is one less than letters
3Multiply spacing9 * 2px18pxLetter spacing times number of spaces
4Add to base widthBase Width + 18pxBase Width + 18pxFinal adjusted width including letter spacing
The adjusted width accounts for letter spacing by adding space between letters.
Variable Tracker
StepVariableValue BeforeValue After
1Number of LettersN/A10
2Spaces Between LettersN/A9
3Letter Spacing TotalN/A18px
4Adjusted WidthBase WidthBase Width + 18px
Key Moments
Why do we subtract one from the number of letters to get spaces?
What does paragraph spacing control?
How does letter spacing affect text width?
Sheet Trace Quiz - 3 Questions
Test your understanding
How many spaces between letters are counted for letter spacing in 'Hello World'?
A10
B9
C11
D8
Key Result
Letter spacing adds horizontal space between letters by multiplying the number of spaces (letters minus one) by the spacing value and adding it to the base text width. Paragraph spacing adds vertical space between paragraphs.
Transcript
We start by counting the letters in the text, ignoring spaces. Then, we calculate the number of spaces between letters, which is one less than the number of letters. Next, we multiply this number by the letter spacing value in pixels. Finally, we add this total spacing to the base width of the text to get the adjusted width. Paragraph spacing is separate and controls vertical spacing between paragraphs.

Practice

(1/5)
1. What does letter spacing control in a text block?
easy
A. The space between individual letters
B. The space between words
C. The space between paragraphs
D. The font size of the text

Solution

  1. Step 1: Understand letter spacing meaning

    Letter spacing means adjusting the space between each letter in a word.
  2. Step 2: Differentiate from other spacing types

    Word spacing is space between words; paragraph spacing is space between paragraphs.
  3. Final Answer:

    The space between individual letters -> Option A
  4. Quick Check:

    Letter spacing = space between letters [OK]
Hint: Letter spacing = space between letters, not words or paragraphs [OK]
Common Mistakes:
  • Confusing letter spacing with word spacing
  • Thinking paragraph spacing affects letters
  • Mixing font size with spacing
2. Which CSS property correctly sets letter spacing to 2 pixels?
easy
A. paragraph-spacing: 2px;
B. letter-spacing: 2px;
C. spacing-letter: 2px;
D. text-spacing: 2px;

Solution

  1. Step 1: Identify correct CSS property for letter spacing

    The correct CSS property is letter-spacing.
  2. Step 2: Check syntax correctness

    Setting it as letter-spacing: 2px; is valid CSS syntax.
  3. Final Answer:

    letter-spacing: 2px; -> Option B
  4. Quick Check:

    Correct CSS property = letter-spacing [OK]
Hint: Remember CSS property is exactly 'letter-spacing' [OK]
Common Mistakes:
  • Using non-existent properties like paragraph-spacing
  • Swapping property names
  • Missing hyphen in property name
3. Given this CSS snippet:
p { letter-spacing: 3px; paragraph-spacing: 10px; }

What will happen when applied to paragraphs in a BI report?
medium
A. Letters will have 3px spacing; paragraph-spacing will be ignored as invalid
B. Both letter-spacing and paragraph-spacing will be ignored
C. Paragraphs will have 3px spacing; letters will have 10px spacing
D. Letters in paragraphs will be spaced out by 3px; paragraphs will have 10px space between them

Solution

  1. Step 1: Understand letter-spacing effect

    Letter-spacing: 3px will space letters by 3 pixels correctly.
  2. Step 2: Check validity of paragraph-spacing

    CSS does not have a paragraph-spacing property, so it will be ignored.
  3. Final Answer:

    Letters will have 3px spacing; paragraph-spacing will be ignored as invalid -> Option A
  4. Quick Check:

    Valid CSS property works; invalid ignored [OK]
Hint: Only valid CSS properties apply; invalid ones are ignored [OK]
Common Mistakes:
  • Assuming paragraph-spacing is valid CSS
  • Mixing letter and paragraph spacing values
  • Expecting both properties to work
4. You want to increase space between paragraphs in a BI report using Figma. Which approach fixes this incorrect CSS?
p { letter-spacing: 1px; paragraph-spacing: 15px; }
medium
A. Use padding-left: 15px; on paragraphs
B. Change letter-spacing to 15px
C. Add line-height: 15px; instead
D. Replace paragraph-spacing with margin-bottom: 15px;

Solution

  1. Step 1: Identify invalid property

    paragraph-spacing is not a valid CSS property.
  2. Step 2: Use correct CSS to add space between paragraphs

    Using margin-bottom: 15px; adds space below each paragraph, effectively spacing paragraphs.
  3. Final Answer:

    Replace paragraph-spacing with margin-bottom: 15px; -> Option D
  4. Quick Check:

    Margin controls spacing between blocks [OK]
Hint: Use margin-bottom to space paragraphs, not paragraph-spacing [OK]
Common Mistakes:
  • Using line-height to add paragraph spacing
  • Changing letter-spacing instead of paragraph spacing
  • Using padding-left which affects horizontal space
5. In a BI dashboard, you want text to be easy to read with balanced spacing. Which combination of settings is best?

letter-spacing: 0.05em;
margin-bottom: 1.5em;

Why is this better than letter-spacing: 0; and margin-bottom: 0.5em;?
hard
A. Letter spacing should be negative; margin-bottom should be zero
B. Zero letter spacing is clearer; smaller margin saves space
C. Slight letter spacing improves clarity; larger margin separates paragraphs clearly
D. Letter spacing and margin-bottom do not affect readability

Solution

  1. Step 1: Understand letter spacing impact

    Slight positive letter spacing (0.05em) helps letters not crowd each other, improving clarity.
  2. Step 2: Understand paragraph spacing impact

    Larger margin-bottom (1.5em) clearly separates paragraphs, making text easier to scan.
  3. Final Answer:

    Slight letter spacing improves clarity; larger margin separates paragraphs clearly -> Option C
  4. Quick Check:

    Balanced spacing = better readability [OK]
Hint: Small letter spacing + bigger paragraph margin = clearer text [OK]
Common Mistakes:
  • Thinking zero spacing is always best
  • Ignoring paragraph spacing importance
  • Using negative letter spacing which reduces clarity