{display: grid; align-items: center; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));} //For a min value of 240px and a max value of the available width of container, i.e. 1fr
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