To rotate an element 45 degrees using CSS, the transform: rotate(________); property is used.
- 45deg
- 90deg
- 180deg
- 360deg
The correct syntax for rotating an element 45 degrees in CSS is transform: rotate(45deg);. This CSS property is widely used for transforming elements, providing various transformation options like rotation, scaling, and skewing.
Loading...
Related Quiz
- How does the opacity property differ from setting the alpha value in rgba for background colors in CSS?
- In a large-scale project using SASS, a team member wants to apply a set of styles in multiple places with slight variations. What SASS feature should they use to achieve this effectively?
- The CSS property ________ can be used to control the amount of space after each paragraph.
- What is the main purpose of media queries in CSS?
- The ________ property in Flexbox can be used to set the order in which a flex item appears within a flex container.