Answers for "html force div to be square"

CSS
1

force div to be square

.square {
  width: 50%;
}

.square:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
Posted by: Guest on October-23-2020

Code answers related to "html force div to be square"

Browse Popular Code Answers by Language