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; background-color: #ccc; padding: 10px; } .grid-box { background-color: #eee; border: 1px solid rgba(0, 0, 0, 0.8); padding: 30px; font-size: 30px; text-align: center; } </style> </head> <body> <h2>Ein Beispiel für die Eigenschaft Grid</h2> <div class="grid-container"> <div class="grid-box">1</div> <div class="grid-box">2</div> <div class="grid-box">3</div> <div class="grid-box">4</div> <div class="grid-box">5</div> <div class="grid-box">6</div> <div class="grid-box">7</div> <div class="grid-box">8</div> <div class="grid-box">9</div> </div> </body> </html>