&__image { position: relative; padding: 0px 0px 59% 0px; ? width: 698px; img { position: absolute; width: 100%; height: 100%; top: 0; left: 0; object-fit: cover; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter