Using object-fit on a with child elements, including a
I don’t know if it’s ok for you, but I think it can be done mostly in css if you allow a little bit more HTML. Consider the following html <div class=”outerContainer”> <div class=”canvasContainer”> <canvas width=”640″ height=”360″></canvas> </div> <div class=”beside”> </div> </div> I just added a little div around the canvas. This way we let … Read more