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(100px, 1fr)); grid-gap: 10px; align-items: start; justify-items: center; margin: auto; width: 540px; } .grid img { border: 1px solid rgba(0,0,0,0.3); box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3); max-width: 100%; } .grid img:nth-child(2) { grid-column: span 3; grid-row: span 2; } </style> <main class="grid"> <img src="/pix/samples/22m.jpg" alt="Sample photo"> <img src="/pix/samples/23l.jpg" alt="Sample photo"> <img src="/pix/samples/24m.jpg" alt="Sample photo"> <img src="/pix/samples/6m.jpg" alt="Sample photo"> <img src="/pix/samples/1m.jpg" alt="Sample photo"> <img src="/pix/samples/25m.jpg" alt="Sample photo"> <img src="/pix/samples/15m.jpg" alt="Sample photo"> <img src="/pix/samples/27m.jpg" alt="Sample photo"> <img src="/pix/samples/28m.jpg" alt="Sample photo"> <img src="/pix/samples/26m.jpg" alt="Sample photo"> </main>
Preview