Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!doctype html> <title>Example</title> <style> .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-gap: 20px; align-items: center; } .grid img { border: 1px solid #ccc; box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3); max-width: 100%; } </style> <main class="grid"> <img src="/pix/samples/1m.jpg" alt="Sample photo"> <img src="/pix/samples/24m.jpg" alt="Sample photo"> <img src="/pix/samples/9m.jpg" alt="Sample photo"> <img src="/pix/samples/12m.jpg" alt="Sample photo"> <img src="/pix/samples/6m.jpg" alt="Sample photo"> <img src="/pix/samples/25m.jpg" alt="Sample photo"> </main>
Preview