UNPKG

@odopod/odo-hotspots

Version:
24 lines (20 loc) 263 B
.aspect { display: block; position: relative; width: 100%; height: 0; padding-bottom: 100%; } .aspect-16x9 { padding-bottom: 56.25%; } .aspect-inner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .my-img { width: 100%; }