Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> .grid-container { display: grid; grid-template-columns: auto auto auto auto; grid-gap: 20px; background-color: #ccc; padding: 10px; } .grid-container > div { background-color: #eee; text-align: center; padding: 30px 0; font-size: 30px; } .box { grid-row-start: auto; } </style> </head> <body> <h2>Exemple de la propriété grid-row-start</h2> <div class="grid-container"> <div>1</div> <div>2</div> <div class="box">3</div> <div>4</div> <div>5</div> <div>6</div> </div> </body> </html>