Getting diamonds-like elements

Report a typo

The product owner asked Alice to create some elements to decorate a webpage that was released last week. The elements have to look like diamonds.

She knows that one way to get the diamond-like shape is to rotate a square to the proper degree. Could you write the CSS code for it?

Don't forget to include the transform CSS property.

Write HTML and CSS code
<div class="diamond"></div>





Completed 1 of 2
Write the CSS property needed to get the rotation Alice is looking for
The code is valid
___

Create a free account to access the full topic