Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> .grid-container { display: grid; grid-template-columns: auto auto auto auto; grid-gap: 10px; background-color: #ccc; padding: 10px; } .grid-container > div { background-color: #666; text-align: center; padding: 20px 0; font-size: 20px; } .box6 { grid-column: auto auto; } </style> </head> <body> <h2>Ein Beispiel für die Eigenschaft Grid-column</h2> <div class="grid-container"> <div class="box1">1</div> <div class="box2">2</div> <div class="box3">3</div> <div class="box4">4</div> <div class="box5">5</div> <div class="box6">6</div> <div class="box7">7</div> </div> </body> </html>