0
0
Figmabi_tool~10 mins

Text alignment and vertical alignment in Figma - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the horizontal text alignment to center in Figma.

Figma
textNode.textAlign = [1]
Drag options to blanks, or click blank then click option'
A"center"
B"left"
C"right"
D"justify"
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'left' or 'right' instead of 'center' for centering text.
2fill in blank
medium

Complete the code to set the vertical text alignment to middle in Figma.

Figma
textNode.verticalAlign = [1]
Drag options to blanks, or click blank then click option'
A"baseline"
B"middle"
C"bottom"
D"top"
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'middle' with 'top' or 'bottom'.
3fill in blank
hard

Fix the error in the code to correctly set horizontal alignment to right.

Figma
textNode.textAlign = [1]
Drag options to blanks, or click blank then click option'
A"right"
Bright
CRight
D'right'
Attempts:
3 left
💡 Hint
Common Mistakes
Using unquoted words or single quotes instead of double quotes.
4fill in blank
hard

Fill both blanks to set horizontal alignment to left and vertical alignment to bottom.

Figma
textNode.textAlign = [1]
textNode.verticalAlign = [2]
Drag options to blanks, or click blank then click option'
A"left"
B"top"
C"bottom"
D"center"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up vertical and horizontal alignment values.
5fill in blank
hard

Fill all three blanks to set horizontal alignment to justify, vertical alignment to top, and assign the text content.

Figma
textNode.textAlign = [1]
textNode.verticalAlign = [2]
textNode.characters = [3]
Drag options to blanks, or click blank then click option'
A"justify"
B"top"
C"Hello, world!"
D"middle"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect quotes or wrong alignment values.