79617494

Date: 2025-05-12 08:52:04
Score: 0.5
Natty:
Report link

You may not be able to set some percent of parent's height to the child, 10% in this case to make it a square, but you can do this: aspect-ratio: 1/1 so that it automatically becomes a square. Full code you may want to use:

.Element{
    height: 10%;
    aspect-ratio: 1/1;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: LakshyaK2011