nerdexam
CIW

1D0-720 · Question #12

Which CSS3 property is used to apply a 2D rotation to an element?

The correct answer is A. transform: rotate(45deg). transform: rotate(45deg) applies a 2D rotation around the element's center point, making A the correct choice - "rotate" directly maps to rotation as its sole purpose. Option B uses translate, which moves an element along the X and Y axes (position, not rotation). Option C uses…

CSS3 Transitions, Transforms, and Animations

Question

Which CSS3 property is used to apply a 2D rotation to an element?

Options

  • Atransform: rotate(45deg);
  • Btransform: translate(50px, 50px);
  • Ctransform: scale(2);
  • Dtransform: skewX(30deg);

How the community answered

(18 responses)
  • A
    89% (16)
  • C
    6% (1)
  • D
    6% (1)

Explanation

transform: rotate(45deg) applies a 2D rotation around the element's center point, making A the correct choice - "rotate" directly maps to rotation as its sole purpose. Option B uses translate, which moves an element along the X and Y axes (position, not rotation). Option C uses scale, which resizes an element larger or smaller. Option D uses skewX, which tilts/slants an element along the horizontal axis, distorting its shape rather than rotating it.

Memory tip: Think of the transform functions by their plain-English verbs - rotate spins, translate moves, scale resizes, skew slants. If the question mentions rotation, the answer will always contain rotate().

Topics

#CSS3 transforms#2D rotation#transform property#rotate() function

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice