Bird
Raised Fist0
Figmabi_tool~10 mins

Letter spacing and paragraph spacing in Figma - Interactive Code Practice

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
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set letter spacing to 2 pixels in Figma.

Figma
textNode.letterSpacing = [1]
Drag options to blanks, or click blank then click option'
A'2px'
B2
C20
D'20px'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string like '2px' instead of a number.
Using too large a number like 20.
2fill in blank
medium

Complete the code to set paragraph spacing to 10 pixels in Figma.

Figma
textNode.paragraphSpacing = [1]
Drag options to blanks, or click blank then click option'
A10
B'10px'
C'10pt'
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string like '10px' instead of a number.
Using a small number like 1 which is too little spacing.
3fill in blank
hard

Fix the error in setting letter spacing to 5 pixels (number expected, not string).

Figma
textNode.letterSpacing = [1]
Drag options to blanks, or click blank then click option'
A5
B'5px'
C'five'
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using '5px' as a string causes errors.
Using 0 removes spacing.
4fill in blank
hard

Fill both blanks to set letter spacing to 3 and paragraph spacing to 12 pixels.

Figma
textNode.letterSpacing = [1]
textNode.paragraphSpacing = [2]
Drag options to blanks, or click blank then click option'
A3
B12
C'12px'
D'3px'
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings like '3px' or '12px' instead of numbers.
Swapping the values between letter and paragraph spacing.
5fill in blank
hard

Fill all three blanks to set letter spacing to 1, paragraph spacing to 8, and then increase letter spacing by 2.

Figma
textNode.letterSpacing = [1]
textNode.paragraphSpacing = [2]
textNode.letterSpacing += [3]
Drag options to blanks, or click blank then click option'
A1
B8
C2
D'2px'
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings like '2px' instead of number 2.
Mixing up paragraph and letter spacing values.

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