Answers for "css set width to height"

CSS
2

how to set height equal to dynamic width pure css

.some_element {
    position: relative;
    width: 20%;
    height: 0;
    padding-bottom: 20%;
}
Posted by: Guest on January-05-2021
1

set height to width css

example {
  height: 100px;
  width: 100px;
  background-color: blue;
}
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language