Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!doctype html> <title>Example</title> <style> #grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-auto-flow: dense; grid-gap: 2px; } #grid > div { background-color: tomato; color: white; font-size: 4vw; padding: 10px; width: 20vw; } #grid > div.wide { width: 40vw; grid-column-end: span 2; } </style> <div id="grid"> <div>1</div> <div class="wide">2</div> <div class="wide">3</div> <div>4</div> <div>5</div> <div>6</div> <div>7</div> <div>8</div> <div>9</div> <div>10</div> </div>