Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!doctype html> <title>Example</title> <style> .grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 10px; align-items: start; justify-items: center; } .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(6) { grid-column: span 5; } </style> <main class="grid"> <img src="/pix/samples/22m.jpg" alt="Sample photo"> <img src="/pix/samples/23m.jpg" alt="Sample photo"> <img src="/pix/samples/24m.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/17l.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"> <img src="/pix/samples/30m.jpg" alt="Sample photo"> <img src="/pix/samples/31m.jpg" alt="Sample photo"> </main>
Preview