RatioBuddy - Aspect ratio calculator

PHOTO EMBED

Fri Oct 02 2020 16:22:20 GMT+0000 (Coordinated Universal Time)

Saved by @rstringa #images #aspect-ratio

.outer {
  position: relative;
  &:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: (9 / 16) * 100%;
  }
  > .inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}
  
content_copyCOPY

https://ratiobuddy.com/