我希望我的元素是一个正方形。我希望这个元素正方形的边长为屏幕/窗口高度的10%。然而,我不知道该怎么做。这是我的代码:如何在CSS中将元素的宽度设置为等于高度的10%?
.Element {
width: /*How can I make the width equal to: [height: 10%]?*/;
height: 10%;
/*I wanted the element to be a square with a side length of [height: 10%].*/
}